Commit 2de3bc5f authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Fix for crashes loading sprites on RISC OS 3.10

A register fumble (revision 4.43 of this file) meant the pointer to the error block from OS_ReadSysInfo not existing was being cached as IRQsema, so later any attempts to resize the RMA would be skipped believing it to be unsafe (because the error pointer would point to an error block whose first word is mostly non zero).
Tested on a real A5000 and emulated via ArcEm.
parent d336b82f
......@@ -3404,7 +3404,7 @@ gotwork
CMP R2,#0
LDREQ R2,=Legacy_IRQsema
STR R0,ptr_IRQsema
STR R2,ptr_IRQsema
MOV R0,#6
MOV R2,#OSRSI6_DomainId
SWI XOS_ReadSysInfo
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