Who's can help me? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

7th Nov 2018, 4:15 AM
hadeelnrd
1 Answer
+ 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
7th Nov 2018, 5:11 AM
Googel
Googel - avatar