summaryrefslogtreecommitdiff
path: root/emu/bus.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-12-30 16:55:06 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-12-30 16:55:06 +0100
commitaff63a211e9b1e397adb9dce726d8153beb96dcd (patch)
tree28f5b85fde65cff328fad0ea1d24fe93e5678b2e /emu/bus.h
parent53569267c59204f56e4c0fddb669536d28706e5c (diff)
download6502-aff63a211e9b1e397adb9dce726d8153beb96dcd.tar.gz
6502-aff63a211e9b1e397adb9dce726d8153beb96dcd.tar.bz2
- 7seg is a subdevice of the VIA 6522 now, registering to
a small sub-bus
Diffstat (limited to 'emu/bus.h')
-rw-r--r--emu/bus.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/emu/bus.h b/emu/bus.h
index c1866cb..e39caae 100644
--- a/emu/bus.h
+++ b/emu/bus.h
@@ -3,6 +3,10 @@
#include "device.h"
+#ifdef WITH_GUI
+#include <SDL.h>
+#endif
+
enum {
MAX_NOF_DEVICES = 5
};
@@ -24,6 +28,9 @@ void bus_register( bus_t *bus, device_t *device, uint16_t from, uint16_t to );
uint8_t bus_read( void *obj, uint16_t addr );
void bus_write( void *obj, uint16_t addr, uint8_t data );
+#ifdef WITH_GUI
+void bus_draw( void *obj, SDL_Renderer *renderer );
+#endif
void bus_deinit( void *obj );
#endif