summaryrefslogtreecommitdiff
path: root/emu/emu.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu/emu.c')
-rw-r--r--emu/emu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/emu/emu.c b/emu/emu.c
index 590f93e..b2293f9 100644
--- a/emu/emu.c
+++ b/emu/emu.c
@@ -53,7 +53,7 @@ int main( int argc, char *argv[] )
bus_register( &bus, &via.base, VIA_START, VIA_END );
seg7_init( &seg7, args_info.initialize_given );
- via_6522_register( &via, &seg7.base );
+ via_6522_register( &via, PORTA, &seg7.base );
cpu_6502_init( &cpu, &bus, args_info.initialize_given );
if( args_info.debug_given ) {
@@ -85,6 +85,7 @@ int main( int argc, char *argv[] )
emul_start( &emul );
cpu_6502_reset( &cpu );
+ via_6522_reset( &via );
emul_run( &emul, args_info.steps_arg );