mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
@@ -22,7 +22,7 @@ extern struct Section *pSectionList, *pCurrentSection;
|
||||
void out_RegisterNode(struct FileStackNode *node);
|
||||
void out_ReplaceNode(struct FileStackNode *node);
|
||||
void out_SetFileName(char *s);
|
||||
void out_CreatePatch(uint32_t type, struct Expression const *expr, uint32_t ofs, bool isOperand);
|
||||
void out_CreatePatch(uint32_t type, struct Expression const *expr, uint32_t ofs, uint32_t pcShift);
|
||||
bool out_CreateAssert(enum AssertionType type, struct Expression const *expr,
|
||||
char const *message, uint32_t ofs);
|
||||
void out_WriteObject(void);
|
||||
|
||||
@@ -62,11 +62,11 @@ void out_AbsWordGroup(uint8_t const *s, int32_t length);
|
||||
void out_AbsLongGroup(uint8_t const *s, int32_t length);
|
||||
void out_Skip(int32_t skip, bool ds);
|
||||
void out_String(char const *s);
|
||||
void out_RelByte(struct Expression *expr, bool isOperand);
|
||||
void out_RelByte(struct Expression *expr, uint32_t pcShift);
|
||||
void out_RelBytes(struct Expression *expr, uint32_t n);
|
||||
void out_RelWord(struct Expression *expr, bool isOperand);
|
||||
void out_RelLong(struct Expression *expr, bool isOperand);
|
||||
void out_PCRelByte(struct Expression *expr, bool isOperand);
|
||||
void out_RelWord(struct Expression *expr, uint32_t pcShift);
|
||||
void out_RelLong(struct Expression *expr, uint32_t pcShift);
|
||||
void out_PCRelByte(struct Expression *expr, uint32_t pcShift);
|
||||
void out_BinaryFile(char const *s, int32_t startPos);
|
||||
void out_BinaryFileSlice(char const *s, int32_t start_pos, int32_t length);
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ struct Patch {
|
||||
uint32_t pcSectionID;
|
||||
uint32_t pcOffset;
|
||||
enum PatchType type;
|
||||
bool isOperand;
|
||||
int32_t rpnSize;
|
||||
uint8_t *rpnExpression;
|
||||
|
||||
|
||||
@@ -99,8 +99,6 @@ enum ExportLevel {
|
||||
SYMTYPE_EXPORT
|
||||
};
|
||||
|
||||
// Bit 7 is special, not part of the actual patch type
|
||||
#define PATCH_ISOPERAND 0x80
|
||||
enum PatchType {
|
||||
PATCHTYPE_BYTE,
|
||||
PATCHTYPE_WORD,
|
||||
|
||||
Reference in New Issue
Block a user