summaryrefslogtreecommitdiff
path: root/emu/emu.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-01-02 20:23:52 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2021-01-02 20:23:52 +0100
commit9490b470f3c0ac2357b60a56a893ab86556af634 (patch)
tree15d8358467ffdacc1bb76e9d9e926e6ee294070e /emu/emu.c
parentaff63a211e9b1e397adb9dce726d8153beb96dcd (diff)
download6502-9490b470f3c0ac2357b60a56a893ab86556af634.tar.gz
6502-9490b470f3c0ac2357b60a56a893ab86556af634.tar.bz2
added VIA
added some more opcodes (SEI, CLI)
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 );