v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
Data Structures | Enumerations | Functions
object.h File Reference

Binary object management. More...

#include <stdio.h>
#include <stdint.h>
#include <as6502/symbols.h>

Go to the source code of this file.

Data Structures

struct  ld6502_object_blob
 A single blob of typeless object data. More...
 
struct  ld6502_object
 The assembler's representation of an object file in memory. More...
 

Enumerations

enum  ld6502_file_type { ld6502_file_type_None = 0, ld6502_file_type_iNES, ld6502_file_type_FlatFile }
 asdf
 

Functions

ld6502_objectld6502_createObject (void)
 Creates a new ld6502_object.
 
void ld6502_destroyObject (ld6502_object *obj)
 Destroys an ld6502_object.
 
void ld6502_loadObjectFromFile (ld6502_object *object, const char *fileName, ld6502_file_type type)
 Creates an ld6502_object with the contents of an object file.
 
void ld6502_addBlobToObject (ld6502_object *obj, uint16_t start)
 Creates an empty ld6502_object_blob and adds it to an ld6502_object.
 
void ld6502_appendByteToBlob (ld6502_object_blob *blob, uint8_t byte)
 Appends a single byte to an ld6502_object_blob.
 

Detailed Description

Binary object management.