You need to establish which of two possible orderings a 16-bit word can be placed in a byte addressable memory. It has been too long since I had a need to know this, and I cannot remember which way it went. Other members of the Intel family put the least significant byte of a word in the lowest address. After the instruction is fetched, the PC will be at address 00022H.Hi, I have a question about 8051
I have an instruction which at adress 0020H and codded as 80F0H
what would be the value of PC?
i don't understand how can i decode it
Can you please explain from where did you find 16?The interrupt vector table begins a 0000H.
Address 0000H is a 3-byte entry which normally would be a LJMP instruction.
Assuming that you are not using the rest of the table for interrupts, the instruction
80 F0 = SJMP F0
Since SJMP is a relative jump, it would be executed as SJMP (PC + 2 - 16)
Since PC = 0020H = 32
PC will become 0012H
by Jake Hertz
by Jake Hertz