void ld6502_writeObjectToINES(ld6502_object *obj, FILE *file)
Writes an ld6502_object directly to an iNES file.
Definition: ines.c:115
The assembler's representation of an object file in memory.
Definition: object.h:47
ines_videoMode
An enum to denote possible NES video modes.
Definition: ines.h:32
int fileIsINES(FILE *infile)
Tests the first four bytes of a file to see if it is has iNES magic. This function will not rewind...
Definition: ines.c:50
void writeToINES(FILE *outfile, ld6502_object_blob *prg_rom, ld6502_object_blob *chr_rom, ines_properties *props)
Take fully linked single flat ld6502_object_blob of program code, a ld6502_object_blob of the CHR ROM...
Definition: ines.c:66
All of the properties that get compiled into the four flag bytes in an iNES header.
Definition: ines.h:38
Binary object management.
A single blob of typeless object data.
Definition: object.h:36
void ld6502_readObjectFromINES(ld6502_object *obj, FILE *file)
Read an ld6502_object from an iNES file. This expects an already allocated ld6502_object.
Definition: ines.c:132
ines_videoMode videoMode
NTSC/PAL.
Definition: ines.h:40
void readFromINES(FILE *infile, ld6502_object_blob *prg_rom, ld6502_object_blob *chr_rom, ines_properties *props)
Load an iNES ROM in, populate an ines_properties struct using the header data, and split the ROM into...
Definition: ines.c:91