Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Assembly Language Code

Status
Not open for further replies.

spassano

Programmer
Apr 13, 2009
1
0
0
US
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

 
It's a vector, not a set of instructions.
Disassemble from 0x0E002187 instead.



--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top