From aff63a211e9b1e397adb9dce726d8153beb96dcd Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 30 Dec 2020 16:55:06 +0100 Subject: - 7seg is a subdevice of the VIA 6522 now, registering to a small sub-bus --- emu/bus.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emu/bus.h') 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 +#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 -- cgit v1.2.3-54-g00ecf