diff options
Diffstat (limited to 'emu/6502.h')
-rw-r--r-- | emu/6502.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,6 +4,8 @@ #include <inttypes.h> #include <stdbool.h> +#include "bus.h" + typedef struct { uint8_t A; @@ -13,7 +15,7 @@ typedef struct uint16_t PC; uint8_t PS; - struct memory_t *memory; + bus_t *bus; int debug_flags; @@ -57,7 +59,7 @@ enum { TXS_IMPL = 0x9A }; -void cpu_6502_init( cpu_6502_t *cpu, struct memory_t *memory ); +void cpu_6502_init( cpu_6502_t *cpu, bus_t *bus ); void cpu_6502_reset( cpu_6502_t *cpu ); uint8_t cpu_6502_read_byte( cpu_6502_t *cpu, uint16_t addr ); uint16_t cpu_6502_read_word( cpu_6502_t *cpu, uint16_t addr ); |