v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
Functions
Memory Lifecycle Functions

Functions

v6502_memoryv6502_createMemory (size_t size)
 Create v6502_memory, type is a size_t so that you can alloc an entire 64k with 0x1,0000. More...
 
void v6502_destroyMemory (v6502_memory *memory)
 Destroy v6502_memory.
 
void v6502_loadExpansionRomIntoMemory (v6502_memory *memory, uint8_t *rom, uint16_t size)
 Load a binary blob of expansion ROM into a given v6502_memory.
 

Detailed Description

Function Documentation

◆ v6502_createMemory()

v6502_memory* v6502_createMemory ( size_t  size)

Create v6502_memory, type is a size_t so that you can alloc an entire 64k with 0x1,0000.

If there are allocation problems, v6502_createMemory will return NULL.