From f829f6893d94ed52044bf007bc447526c9d5e653 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 27 Nov 2020 20:04:18 +0100 Subject: emulator uses a bus now in the cpu, ROM, RAM and VIA (7-seg) are devices connected to the bus --- emu/emul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emu/emul.c') diff --git a/emu/emul.c b/emu/emul.c index 930f112..602ce33 100644 --- a/emu/emul.c +++ b/emu/emul.c @@ -3,10 +3,10 @@ #include #include -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; -- cgit v1.2.3-54-g00ecf