Question
(f) and (g) please
letters Question 2 Indirect addressing mode in assembly language is sanilar to pointers in C. Answer the following questions:

f and g please
etters Question 2 Indirect addressing mode in assembly language is stinilar to pointers in C. Answer the following questions:
letters Question 2 Indirect addressing mode in assembly language is sanilar to pointers in C. Answer the following questions: (1 point) a) How many 8-bit registers can a FSR access in the PICI8F452 MCU? b) Write the assembly language command to load the address of the variable with name: PVal into one of the FSR? (2 points) (2 points) (2 points) c) What is the meaning of: movf PREINC2, F? d) What is the meaning of: movff POSTİNCI, PORTA? e) Write an assembly language program to copy the values stored at addresses 32H-37H to PORTC using indirect addressing mode. There should be a delay of 5 ms between each copy action. Assume you have the LoopTime subroutine, which implements a delay of 10 ms. (6 points) (6 points) f Given the following code answer the questions below movlw 0xF9 addlw 0x4A 1) What is the content of the W register after the moviw OxF9 command? 2) What is the content of the W register after the addlw 0x4A command? 3) What is the result of the addition (in HEX) if the numbers were unsigned 4) What will the command "movlw 0xF9, F" do? Explain g) What is the value of j (in HEX) after the execution of the following code? (3point signed char i,
etters Question 2 Indirect addressing mode in assembly language is stinilar to pointers in C. Answer the following questions: (I point) a) How many 8-bit registers can a FSR access in the PICI8F452 MCU? b) Write the assembly language command to load the address of the variable with name: P Val into one (2 points) (2 points) (2 points) of the FSR? c) What is the meaning of: movf PREINC2, F? d) What is the meaning of: movff POSTİNCI, PORTA? e) Write an assembly language program to copy the values stored at addresses 32H-37H to PORTC using indirect addressing mode. There should be a delay of 5 ms between each copy action. Assume you have the LoopTime subroutine, which implements a delay of 10 ms. Given the following code answer the questions below (6 points) (6 points) movlw 0xF addlw 0x4A 1) What is the content of the W register after the movlw 0xF9 command? 2) What is the content of the W register after the addlw 0x4A command? 3) What is the result of the addition (in HEX) if the numbers were unsigned? 4) What will the command ."movlw 0xF9, P" do? Explain What is the value of j (in HEX) after the execution of the following code? g) (3point signed char i,
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer :- f)1) The value of W is 0xF9.

Answer :- f)2) The value of W = 0xF9 + 0x4A = 0x143. But W is of 8-bit size, hence W 0x43.

Answer :- f)3) The result is 0x143.

Answer :- f)4) This is not a correct syntax for MOVLW instruction. The syntax for this instruction is-

MOVLW k

where k is the constant value ranging from 0 to 255.

Answer :- g) The value of j is 2-bit right shifted of the value of i i.e. 1011_0110. The MSB bit is preserved. So j = 1110_1101 = 0xED.

Add a comment
Know the answer?
Add Answer to:
(f) and (g) please f and g please letters Question 2 Indirect addressing mode in assembly language is sanilar to pointers in C. Answer the following questions: (1 point) a) How many 8-bit reg...
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
  • Question 5 What are the addressing modes of the following assembly instructions? 1) (1 point) LDR...

    Question 5 What are the addressing modes of the following assembly instructions? 1) (1 point) LDR R1, R2] A. Immediate mode B. Register mode C. Relative mode D. Indirect mode 2) (1 point) SUB RO, R1, R4 A. Immediate mode B. Index mode C. Register mode D. Indirect mode 3) (1 point) BMI target A. Immediate mode B. Register mode C. Relative mode D. Indirect mode Question 6 Which of the following utility software tools can translate high level language...

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