fix HOpen/HOpenRF

This commit is contained in:
Kelvin Sherlock 2015-01-07 17:01:44 -05:00
parent dba511a103
commit 6aaadb8861

View File

@ -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);
} }