mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-24 13:32:39 +00:00
fix HOpen/HOpenRF
This commit is contained in:
parent
dba511a103
commit
6aaadb8861
@ -437,16 +437,24 @@ namespace OS
|
|||||||
|
|
||||||
uint16_t Open(uint16_t trap)
|
uint16_t Open(uint16_t trap)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
bool htrap = trap & 0x0200;
|
||||||
|
const char *func = htrap ? "HOpen" : "Open";
|
||||||
|
|
||||||
uint32_t parm = cpuGetAReg(0);
|
uint32_t parm = cpuGetAReg(0);
|
||||||
Log("%04x Open(%08x)\n", trap, parm);
|
Log("%04x %s(%08x)\n", trap, func, parm);
|
||||||
return OpenCommon(parm, false, false);
|
return OpenCommon(parm, htrap, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t OpenRF(uint16_t trap)
|
uint16_t OpenRF(uint16_t trap)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
bool htrap = trap & 0x0200;
|
||||||
|
const char *func = htrap ? "HOpenRF" : "OpenRF";
|
||||||
|
|
||||||
uint32_t parm = cpuGetAReg(0);
|
uint32_t parm = cpuGetAReg(0);
|
||||||
Log("%04x Open(%08x)\n", trap, parm);
|
Log("%04x %s(%08x)\n", trap, func, parm);
|
||||||
return OpenCommon(parm, false, true);
|
return OpenCommon(parm, htrap, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user