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/emul.c | |
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/emul.c')
-rw-r--r-- | emu/emul.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -152,10 +152,11 @@ void emul_run( emul_t *emul, int nof_steps ) SDL_RenderCopy( emul->renderer, emul->background_texture, NULL, NULL ); - for( int i = 0; i < emul->bus->nof_devices; i++ ) { - device_t *device = emul->bus->devices[i].device; - device->vtable->draw( device, emul->renderer ); - } + emul->bus->base.vtable->draw( emul->bus, emul->renderer ); + //~ for( int i = 0; i < emul->bus->nof_devices; i++ ) { + //~ device_t *device = emul->bus->devices[i].device; + //~ device->vtable->draw( device, emul->renderer ); + //~ } SDL_RenderPresent( emul->renderer ); |