Commit 4a56c45f authored by Timothy E Baldwin's avatar Timothy E Baldwin Committed by ROOL
Browse files

Fix ROM check for callbacks

Check now works if ROMLimit is precisely at the end
of ROM causing ROMLimit to not be a valid immediate.
parent afd37607
......@@ -894,8 +894,8 @@ callback_checking
CMP r0, #ROM
BHS Do_CallBack
CMP r0, #ROM
RSBHIS r12, r0, #ROMLimit
SUBS r12, r0, #ROM
RSBHIS r12, r12, #ROMLimit - ROM
BHI Do_CallBack
ORR r11, r11, #CBack_Postpone ; signal to IRQs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment