diff --git a/src/apple2/debug.c b/src/apple2/debug.c index 14d2644..aa98a8d 100644 --- a/src/apple2/debug.c +++ b/src/apple2/debug.c @@ -38,8 +38,6 @@ apple2_debug_cmd cmdtable[] = { "Add breakpoint at ", }, { "dblock", "db", apple2_debug_cmd_dblock, 2, " ", "Disassemble a block of code", }, - { "disasm", "d", apple2_debug_cmd_disasm, 0, "", - "Toggle disassembly", }, { "help", "h", apple2_debug_cmd_help, 0, "", "Print out this list of commands", }, { "hdump", "hd", apple2_debug_cmd_hdump, 2, " ", @@ -428,20 +426,6 @@ DEBUG_CMD(step) apple2_debug_break(cpu->PC); } -/* - * Toggle disassembly, and print a notice of the change and its new - * status. - */ -DEBUG_CMD(disasm) -{ - apple2 *mach = (apple2 *)vm_di_get(VM_MACHINE); - FILE *stream = (FILE *)vm_di_get(VM_OUTPUT); - - mach->disasm = true; - - fprintf(stream, "disassembly %s\n", mach->disasm ? "ON" : "OFF"); -} - /* * Disassemble a block of memory from one given address to another. * Useful when you want to see what memory looks like in a given region. diff --git a/tests/vm_debug.c b/tests/vm_debug.c index f0793aa..07a3265 100644 --- a/tests/vm_debug.c +++ b/tests/vm_debug.c @@ -276,14 +276,6 @@ Test(apple2_debug, cmd_step) /* Test(apple2_debug, cmd_quit) */ -Test(apple2_debug, cmd_disassemble) -{ - cr_assert_eq(mach->disasm, false); - apple2_debug_cmd_disasm(&args); - cr_assert_neq(strlen(buf), 0); - cr_assert_eq(mach->disasm, true); -} - Test(apple2_debug, cmd_dblock) { mos6502_set(mach->cpu, 0, 0xEA);