diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-30 16:55:06 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-30 16:55:06 +0100 |
commit | aff63a211e9b1e397adb9dce726d8153beb96dcd (patch) | |
tree | 28f5b85fde65cff328fad0ea1d24fe93e5678b2e /emu/bus.h | |
parent | 53569267c59204f56e4c0fddb669536d28706e5c (diff) | |
download | 6502-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |