mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-15 08:29:50 +00:00
ResError should return the error on the stack (Pascal / Pascal IIgs)
This commit is contained in:
parent
db89554b31
commit
9e2a8d3e53
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user