mirror of
https://github.com/ksherlock/mpw.git
synced 2025-08-09 03:25:15 +00:00
TempFreeMem
This commit is contained in:
@@ -1504,9 +1504,19 @@ namespace MM
|
|||||||
if (address) memoryWriteLong(0, address);
|
if (address) memoryWriteLong(0, address);
|
||||||
|
|
||||||
ToolReturn<4>(sp, mplite_maxmem(&pool));
|
ToolReturn<4>(sp, mplite_maxmem(&pool));
|
||||||
SetMemError(0); // not sure if this is correct. oh well.
|
|
||||||
|
|
||||||
return 0;
|
return SetMemError(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint16_t TempFreeMem(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
// FUNCTION TempFreeMem: LongInt;
|
||||||
|
|
||||||
|
Log(" TempFreeMem()\n");
|
||||||
|
|
||||||
|
ToolReturn<4>(-1, mplite_freemem(&pool));
|
||||||
|
|
||||||
|
return SetMemError(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -88,6 +88,7 @@ namespace MM
|
|||||||
// OS Dispatch
|
// OS Dispatch
|
||||||
|
|
||||||
uint16_t TempMaxMem(void);
|
uint16_t TempMaxMem(void);
|
||||||
|
uint16_t TempFreeMem(void);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -65,6 +65,9 @@ namespace ToolBox {
|
|||||||
case 0x0015:
|
case 0x0015:
|
||||||
return MM::TempMaxMem();
|
return MM::TempMaxMem();
|
||||||
|
|
||||||
|
case 0x0018:
|
||||||
|
return MM::TempFreeMem();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "OSDispatch: selector %04x not implemented\n",
|
fprintf(stderr, "OSDispatch: selector %04x not implemented\n",
|
||||||
selector);
|
selector);
|
||||||
|
Reference in New Issue
Block a user