mpw/toolbox/mm.h

30 lines
501 B
C
Raw Normal View History

2013-02-07 22:49:20 -05:00
#ifndef __mpw_mm_h__
#define __mpw_mm_h__
2013-02-07 22:12:30 -05:00
#include <cstdint>
namespace MM
{
enum
{
2013-02-10 20:19:11 -05:00
memFullErr = -108,
memWZErr = -111,
2013-02-07 22:49:20 -05:00
};
bool Init(uint8_t *memory, uint32_t memorySize, uint32_t reserved);
2013-02-07 22:12:30 -05:00
2013-02-07 23:44:58 -05:00
uint16_t BlockMove(uint16_t trap);
2013-02-15 00:08:22 -05:00
uint32_t CompactMem(uint16_t trap);
2013-02-10 20:19:11 -05:00
uint16_t DisposePtr(uint16_t trap);
2013-02-14 23:08:56 -05:00
uint16_t DisposeHandle(uint16_t trap);
2013-02-07 22:12:30 -05:00
uint16_t NewPtr(uint16_t trap);
2013-02-14 23:08:56 -05:00
uint16_t NewHandle(uint16_t trap);
2013-02-15 20:33:00 -05:00
uint16_t SetPtrSize(uint16_t);
uint16_t SetHandleSize(uint16_t);
2013-02-07 22:12:30 -05:00
}
2013-02-15 00:08:22 -05:00
2013-02-07 22:12:30 -05:00
#endif