Commit 72147877 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Fix for garbled 'No such SWI' message

Remember to fill in the module title for %0.
parent f49f2d8c
......@@ -37,8 +37,4 @@
MakeInternatErrorBlock VFPSupport_Instanced,,E06
MakeInternatErrorBlock VFPSupport_BadFlags,,E07
; Other errors
MakeInternatErrorBlock ModuleBadSWI
END
......@@ -633,8 +633,15 @@ JumpTable
EndOfJumpTable
UnknownSWI
ADRL r0, ErrorBlock_ModuleBadSWI
B ReturnError_LR
Push "r1-r2,r4,lr"
ADR r0, ErrorBlock_ModuleBadSWI
MOV r1, #0 ; Global messages
MOV r2, #0 ; Internal buffer
ADRL r4, ModuleTitle
SWI XMessageTrans_ErrorLookup ; Sets V
Pull "r1-r2,r4,pc"
MakeErrorBlock ModuleBadSWI
SWI_CheckContext
; in: R0 = flags
......
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