-
Notifications
You must be signed in to change notification settings - Fork 0
/
assemble.h
38 lines (31 loc) · 997 Bytes
/
assemble.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef __ASSEMBLE_H__
#define __ASSEMBLE_H__
#include "os_structs.h"
#include "rom.h"
#define PR_HEADER 0x01
#define PR_RECORDS 0x02
#define PR_INDIRECT_ADD 0x04
extern ROMPtr InitializeROM (ROMVersion* pVersion,
UInt16 flags);
extern void* ROMalloc (ROMPtr pROM,
UInt32 size,
UInt8 owner);
extern void ROMfree (ROMPtr pROM,
void* ptr);
extern int ShrinkROM (ROMPtr pROM,
UInt32 newSize);
extern int AddPRC (ROMPtr pROM,
DatabaseListPtr pDBList,
PRCPtr pPRC,
UInt16 flags,
int DBIdex);
extern int AddPRCs (ROMPtr pROM,
int numPRCs,
char* PRCNames[],
UInt16 flags);
extern int WriteROM (ROMPtr pROM,
int hROM);
extern int SetSystem (ROMPtr pROM);
extern int CompareTypeCtor (const void* ppDB1,
const void* ppDB2);
#endif // __ASSEMBLE_H__