diff options
author | Camil Staps | 2016-10-02 12:05:50 +0000 |
---|---|---|
committer | Camil Staps | 2016-10-02 12:05:50 +0000 |
commit | 5effb5bfcaf95ad12e42a298c2306fab36dd402e (patch) | |
tree | e774eba7f4545701be6a22fa182113b2758685a8 /MAIN_CLM.d | |
parent | Add .align before pushing program counter (diff) |
Fix storing the program counter
The previous solution was to add 9 (8 for the offset, 1 for the Thumb
state). However, the lowest bit is used for something else (garbage
collection / evaluation status), so this gives some problems.
This solution adds only 8 (the offset), so that we don't alter the
lowest two bits. Then, when jumping, the address is IORed with 1, so
that the Thumb state bit is set.
Diffstat (limited to 'MAIN_CLM.d')
0 files changed, 0 insertions, 0 deletions