mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-25 19:30:50 +00:00
return the MPW exit status.
This commit is contained in:
parent
f7800ece1e
commit
add2d6b5a3
@ -776,12 +776,18 @@ int main(int argc, char **argv)
|
|||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
uint32_t pc = cpuGetPC();
|
uint32_t pc = cpuGetPC();
|
||||||
if (pc == 0x00000000) break;
|
if (pc == 0x00000000)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Exiting - PC = 0\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (cpuGetStop()) break;
|
if (cpuGetStop()) break;
|
||||||
cpuExecuteInstruction();
|
cpuExecuteInstruction();
|
||||||
}
|
}
|
||||||
|
|
||||||
// return value in mpwblock + 0x0e?
|
uint32_t rv = MPW::ExitStatus();
|
||||||
exit(0);
|
if (rv > 0xff) rv = 0xff;
|
||||||
|
|
||||||
|
exit(rv);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user