summaryrefslogtreecommitdiff
path: root/emu/emul.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-11-27 20:04:18 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-11-27 20:04:18 +0100
commitf829f6893d94ed52044bf007bc447526c9d5e653 (patch)
treec1c98d8b9240b4507719aa8b78eb3ee03dd64ab5 /emu/emul.c
parent3d77f3f5ad41e931117425f58c74f49c9503bf7b (diff)
download6502-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.c4
1 files changed, 2 insertions, 2 deletions
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 <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;