diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-11-27 20:04:18 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-11-27 20:04:18 +0100 |
commit | f829f6893d94ed52044bf007bc447526c9d5e653 (patch) | |
tree | c1c98d8b9240b4507719aa8b78eb3ee03dd64ab5 /emu/emul.c | |
parent | 3d77f3f5ad41e931117425f58c74f49c9503bf7b (diff) | |
download | 6502-f829f6893d94ed52044bf007bc447526c9d5e653.tar.gz 6502-f829f6893d94ed52044bf007bc447526c9d5e653.tar.bz2 |
emulator uses a bus now in the cpu, ROM, RAM and VIA (7-seg) are devices connected to the bus
Diffstat (limited to 'emu/emul.c')
-rw-r--r-- | emu/emul.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,10 +3,10 @@ #include <stdio.h> #include <stdlib.h> -void emul_init( emul_t *emul, cpu_6502_t *cpu, memory_t *memory, int width, int height ) +void emul_init( emul_t *emul, cpu_6502_t *cpu, bus_t *bus, int width, int height ) { emul->cpu = cpu; - emul->memory = memory; + emul->bus = bus; emul->gui = false; emul->width = width; emul->height = height; |