mirror of
https://github.com/ksherlock/mpw.git
synced 2026-04-26 20:17:49 +00:00
ResError should return the error on the stack (Pascal / Pascal IIgs)
This commit is contained in:
+5
-1
@@ -317,9 +317,13 @@ namespace RM
|
||||
|
||||
uint16_t ResError(uint16_t trap)
|
||||
{
|
||||
uint32_t sp;
|
||||
|
||||
Log("%04x ResError()\n", trap);
|
||||
|
||||
return memoryReadWord(MacOS::ResErr);
|
||||
sp = cpuGetAReg(7);
|
||||
ToolReturn<2>(sp, memoryReadWord(MacOS::ResErr));
|
||||
return 0;
|
||||
}
|
||||
|
||||
// SetResLoad (load: BOOLEAN);
|
||||
|
||||
Reference in New Issue
Block a user