.MODEL SMALL
.STACK 64
.DATA
DATA1 DB -115 ;8DH
DATA2 DB -36 ;DCH
DATA3 DB 00H ;
DATA4 DW 0000H ;
.CODE
MAIN PROC FAR ;this is the program entry point
MOV AX, @DATA ;load the data segment address
MOV DS, AX ;assign value to data segment register
;======================================================
; Put your source code here
;=========================================================O
QUITDOS:
MOV AH, 4CH ;set up to
INT 21H ;return to DOS
MAIN ENDP
END MAIN ;this is the program exit point
MAIN ENDP
use this sample code and write the according to instructions in the picture.
and run the program with EMU8086 and show running results. Do it ASAP!
Project 1: Signed addition (20 score)
There are two signed defined byte data inside the DATA segment, DATA1 and DATA2 as shown in the program template. Please calculate DATA1 + DATA2 and save the result into DATA3 or DATA4.
.DATA
DATA1 DB -115
DATA2 DB -36
DATA3 DB 00H
DATA4 DW 0000H
.CODE