The following lines are loaded into the reset vector of a M16C processor:
0FFFFC 2187 ADD.B -121[SB], R0L
0FFFFE 0E00 MOV.B 0[FB], R0H
It has been years since I have worked with assembly code and I am struggling to figure out how these two lines of code can point me to the lines of code that are executed upon a reset. I understand the lines will load two values into the two R0 bytes, but I don't understand 1) how the values (addresses) loaded into R0 will give the address of the code executed upon a reset and 2) how to find the values in the Frame Pointer or the Static Base register (with offset) can be known.
Any help would be greatly appreciated.
Thanks,
Steve
0FFFFC 2187 ADD.B -121[SB], R0L
0FFFFE 0E00 MOV.B 0[FB], R0H
It has been years since I have worked with assembly code and I am struggling to figure out how these two lines of code can point me to the lines of code that are executed upon a reset. I understand the lines will load two values into the two R0 bytes, but I don't understand 1) how the values (addresses) loaded into R0 will give the address of the code executed upon a reset and 2) how to find the values in the Frame Pointer or the Static Base register (with offset) can be known.
Any help would be greatly appreciated.
Thanks,
Steve