Microprocessors: From Assembly Language to C Using thePIC18Fxx2

I.6: CHAPTER 6

I.6 CHAPTER 6

1.

If the call 0x0480 instruction is at program memory location 0x0100, what return address is pushed on the stack?

2.

If the rcall 0x0480 instruction is at program memory location 0x0100, what return address is pushed on the stack?

3.

When would you have to use a call instruction instead of an rcall instruction?

4.

Give the contents of any changed memory locations and/or registers after execution of the following instructions, assuming the initial memory contents of Table 6.3.

    lfsr  FSRO,  0x024    incf  POSTDECO,  f

5.

Give the contents of any changed memory locations and/or registers after execution of the following instructions, assuming the initial memory contents of Table 6.3.

    lfsr  FSRO,  0x024    decf  INDFO,  f

6.

Give the contents of any changed memory locations and/or registers after execution of the following instructions, assuming the initial memory contents of Table 6.3.

    lfsr  FSRO,  0x024    incf  PREINCO,  f

7.

Give the contents of any changed memory locations and/or registers after execution of the following instructions, assuming the initial memory contents of Table 6.3.

    lfsr  FSRO,  0x024    incf  POSTINCO,  f

8.

Give the contents of any changed memory locations and/or registers after execution of the following instructions, assuming the initial...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Memory Modules
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.