Question

Part III (30 points)- Analyze the following statements in Assembly language using signe 16 bit numbers movf subwf i+1, bot end if mov i 1, w addwfc. end if rest of oode


Analize the following statements in assembly language using signed 16-bit numbers.
1) Explain how to work the following statement in assembly language  

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

movf i,w

The MOVF command copies the contents of the register specified by i,w to the working register.

subwf

subtract w from f is j is 0 it is stored in w and jis 1 it is stored in w

subwfb

subtract w and the carry flag borrow from register f

addwf

add w to register f if j is 0 the result is stored in w if j is 1 the result is stored in f

addwf c

add w the carry flag and data memory location f if j is 0 the result is placed in w

if j is 1 the result is stored back in register f

Add a comment
Know the answer?
Add Answer to:
Analize the following statements in assembly language using signed 16-bit numbers. 1) Explain how to work...
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