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