summaryrefslogtreecommitdiff
path: root/emu/emu.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-11-29 19:31:22 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-11-29 19:31:22 +0100
commitc7b0b280339064ab1b673ab7767d0318b2e9b72a (patch)
treeb597ee3f3c36db401eccb5bca5e8d7f8a8db8485 /emu/emu.c
parentaca930d803177cb6ea8ebadd77b6ef09ab2b5b49 (diff)
download6502-c7b0b280339064ab1b673ab7767d0318b2e9b72a.tar.gz
6502-c7b0b280339064ab1b673ab7767d0318b2e9b72a.tar.bz2
7-segment display is now drawn
Diffstat (limited to 'emu/emu.c')
-rw-r--r--emu/emu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/emu/emu.c b/emu/emu.c
index 53431c2..539c89b 100644
--- a/emu/emu.c
+++ b/emu/emu.c
@@ -68,12 +68,11 @@ int main( int argc, char *argv[] )
emul_init( &emul, &cpu, &bus, args_info.width_arg, args_info.height_arg );
if( args_info.gui_given ) {
- if( args_info.debug_given ) {
- fprintf( stderr, "ERROR: don't run debug and GUI together! Uses too many resources!\n" );
- exit( EXIT_SUCCESS );
- }
emul.gui = true;
}
+ if( args_info.debug_given ) {
+ emul.debug = true;
+ }
emul_start( &emul );
cpu_6502_reset( &cpu );