|Page 1 of 1|
|Author:||fpn [ Wed Nov 24, 2010 5:07 pm ]|
|Post subject:||PC-relative adddressing|
I'm trying to simulate instructions using PC-relative addressing like
The simulator seems to replace value of the program counter with 0.
Is this a bug or do I miss something?
|Author:||lee [ Wed Nov 24, 2010 8:18 pm ]|
You're missing something. The target address is treated as an absolute address and used to calculate an offset from the current PC. So if you want to specify an offset you need to specify it as an offset from the current PC e.g.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group