fix ResolveAliasFile stack return value

This commit is contained in:
Kelvin Sherlock 2014-12-23 08:44:17 -05:00
parent 3dd91f18b6
commit e377025e48

View File

@ -57,9 +57,11 @@ namespace OS {
uint16_t AliasDispatch(uint16_t trap) uint16_t AliasDispatch(uint16_t trap)
{ {
uint16_t d0;
uint16_t selector = cpuGetDReg(0); uint16_t selector = cpuGetDReg(0);
Log("%04x AliasDispatch($%04x)\n", trap, selector); Log("%04x AliasDispatch($%04x)\n", trap, selector);
@ -68,7 +70,7 @@ namespace OS {
{ {
case 0x000c: case 0x000c:
return ResolveAliasFile(); d0 = ResolveAliasFile();
break; break;
default: default:
@ -77,8 +79,8 @@ namespace OS {
exit(1); exit(1);
} }
ToolReturn<2>(-1, d0);
return 0; return d0;
} }
} }