Question

Construct a program using assembly language to perform the addition of two values - the first...

Construct a program using assembly language to perform the addition of two values - the first value; 4AH stored in register B and the second value; 36H stored in register D. The result of the addition is then stored in memory location 0x2020. Include comments to each instruction line of the program.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Program:

LDA B // load the content of register B i.e. 4AH to accumulator

MOV R1,A // move the data from accumulator to register R1

LDA D //load the content of register D i.e. 36H to accumulator

ADD R1 // add the data of register R1 and accumulator and result store in accumulator

STA 0x2020H // store the data at memory location 0x2020H which is stored in accumulator

Add a comment
Know the answer?
Add Answer to:
Construct a program using assembly language to perform the addition of two values - the first...
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
ADVERTISEMENT