mirror of
https://github.com/Museum-of-Art-and-Digital-Entertainment/macross.git
synced 2024-11-26 07:49:14 +00:00
16 lines
517 B
C
16 lines
517 B
C
#ifndef POKE_H_
|
|
#define POKE_H_
|
|
|
|
#include "slinkyTypes.h"
|
|
|
|
bool isWordSized(int value);
|
|
bool isByteSized(int value);
|
|
bool isByteOffset(int value);
|
|
int computeRelativeValue(int valueToPoke, codeSegmentHeaderType *codeSegment, int offset);
|
|
int getBaseValue(byte *codeBuffer, int offset, int referenceKind);
|
|
void pokeValue(int value, byte *codeBuffer, int offset, int referenceKind, int trueAddress);
|
|
void fixupReference(expressionReferenceType *reference, codeSegmentHeaderType *codeSegment);
|
|
void pokem(void);
|
|
|
|
#endif
|