62.0k views
5 votes
Assume that the PIC18F is currently executing a 16-bit instruction addressed by 0x00015A. What are the current contents of the program counter

1 Answer

5 votes

Answer:

0x00015C

Step-by-step explanation:

Given that the counter is executing a 16-bit instruction ( currently )

addressed as 0x00015A

The counter keeps/records the address of the next executable instruction hence the current contents of the program counter

= 0x00015A + 16 bits note: ( 16 bits = 2 bytes )

hence current content of program counter = 0x00015C

User Amatkivskiy
by
5.1k points