Question

Write a program to subtract two 16-bit numbers: 2762H-1296H. Assume R26-62) and R27 (27). Place the difference in R26 and R27
0 0
Add a comment Improve this question Transcribed image text
Answer #1


; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt

data segment
a dw 2762h
b dw 1296h
c dw ?
data ends

code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov ax,a
mov bx,b
sub ax,bx
mov c,ax
int 3
code ends
end start

徘 mulator: noname.exe file math debug view external virtual devices virtual drive help Load reload step back single step step

Add a comment
Know the answer?
Add Answer to:
Write a program to subtract two 16-bit numbers: 2762H-1296H. Assume R26-62) and R27 (27). Place the difference in R26 and R27: R26 should have the lower byte. Write a program to subtract t...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT