+ 3
Who's can help me?
Write an assembly program to subtract two numbers located at memory location NUM1 and NUM2 , and store the result in RESULT. Use the following numbers as your data NUM1=7F26B36Ah NUM2=5200F3C2h
1 Antwort
+ 5
DATA SEGMENT
NUM1 DB 05
NUM2 DB 06
RESULT DB ?
ENDS
CODE SEGMENT
ASSUME DS:DATA CS:CODE
START:
MOV AX,DATA
MOV DS,AX
MOV AL,NUM1
ADD AL,NUM2
MOV RESULT,AL
MOV AH,0
AAA
MOV AH,4CH
INT 21H
ENDS
END START