Question

For the following answer the questions below: ORG
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

1
Below is what each statement of the code means:

ORG 300   #code starts at address 300
LDA ADS   #load in accumulator the content of ADS, i.e. 800
STA PTR   #store the content of accumulator in address HEX 0
LDA NBR   #load in accumulator the content of NBR, i.e. DEC -200
STA CTR   #store the content of accumulator in address HEX0
CLA #clear accumulator
INC #increament accumulator, carry is stored in E
LOP, STA PTR I   #store in mem loc HEX 0
ISZ PTR   #increase mem loc by 1, skip if PTR has 0
ISZ CTR   #increase mem loc by 1, skip if CTR has 0
BUN LOP   #branch unconditionally to LOP
HLT

Add a comment
Know the answer?
Add Answer to:
For the following answer the questions below: ORG 300 LDA ADS STA PTR LDA NBR STA...
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
  • For the following program answer the questions below: ORG 400 LDA ADS STA PTR LDA NBR....

    For the following program answer the questions below: ORG 400 LDA ADS STA PTR LDA NBR. STA CTR. CLA CLE CME CIL LOP, STA PTR I ISZ PTR ISZ CTR. BUN LOP HLT ADS, HEX 600 PTR, HEX 0 NBR, DEC-150 CTR, HEX0 END Briefly describe the task performed by the code above? What is the content of the following memory locations after the execution of the program: What is the number of iterations in program above?

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