FlushVol (stub)

This commit is contained in:
Kelvin Sherlock 2013-03-27 00:00:47 -04:00
parent 18fa1a760a
commit 2b66aeae0e
3 changed files with 16 additions and 1 deletions

View File

@ -605,6 +605,17 @@ namespace OS
return d0;
}
uint16_t FlushVol(uint16_t trap)
{
uint32_t parm = cpuGetAReg(0);
Log("%04x FlushVol(%08x)\n", trap, parm);
// ioResult
memoryWriteWord(0, parm + 16);
return 0;
}
// return the name of the default volume.
// this does not translate well.

View File

@ -38,6 +38,7 @@ namespace OS
uint16_t Close(uint16_t trap);
uint16_t Create(uint16_t trap);
uint16_t Delete(uint16_t trap);
uint16_t FlushVol(uint16_t trap);
uint16_t GetFileInfo(uint16_t trap);
uint16_t SetFileInfo(uint16_t trap);

View File

@ -68,6 +68,9 @@ namespace ToolBox {
case 0xa012:
d0 = OS::SetEOF(trap);
break;
case 0xa013:
d0 = OS::FlushVol(trap);
break;
case 0xa014:
d0 = OS::GetVol(trap);
@ -289,7 +292,7 @@ namespace ToolBox {
case 0xa9ba:
d0 = Utility::GetString(trap);
break;
default:
fprintf(stderr, "Unsupported tool trap: %04x\n", trap);
fprintf(stderr, "pc: %08x\n", cpuGetPC());