26 #ifndef ld6502_object_h 27 #define ld6502_object_h 59 ld6502_file_type_None = 0,
60 ld6502_file_type_iNES,
61 ld6502_file_type_FlatFile
ld6502_object_blob * blobs
An array of ld6502_object_blob's.
Definition: object.h:51
ld6502_file_type
asdf
Definition: object.h:58
void ld6502_appendByteToBlob(ld6502_object_blob *blob, uint8_t byte)
Appends a single byte to an ld6502_object_blob.
Definition: object.c:110
void ld6502_loadObjectFromFile(ld6502_object *object, const char *fileName, ld6502_file_type type)
Creates an ld6502_object with the contents of an object file.
Definition: object.c:57
ld6502_object * ld6502_createObject(void)
Creates a new ld6502_object.
Definition: object.c:35
The assembler's representation of an object file in memory.
Definition: object.h:47
uint16_t len
The length of the data.
Definition: object.h:40
int count
The number of ld6502_object_blob's.
Definition: object.h:53
uint16_t start
The start address of the data.
Definition: object.h:38
as6502_symbol_table * table
The as6502_symbol_table that contains all symbols that correspond to each of the attached blobs...
Definition: object.h:49
void ld6502_addBlobToObject(ld6502_object *obj, uint16_t start)
Creates an empty ld6502_object_blob and adds it to an ld6502_object.
Definition: object.c:95
The assembler's per-object symbol table structure, which holds all symbols.
Definition: symbols.h:71
A single blob of typeless object data.
Definition: object.h:36
void ld6502_destroyObject(ld6502_object *obj)
Destroys an ld6502_object.
Definition: object.c:45
uint8_t * data
The data.
Definition: object.h:42