1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-21 08:30:55 +00:00

Remove disasm command

This commit is contained in:
Peter Evans 2018-04-13 23:36:58 -05:00
parent da4a82d8cf
commit a3a32662ef
2 changed files with 0 additions and 24 deletions

View File

@ -38,8 +38,6 @@ apple2_debug_cmd cmdtable[] = {
"Add breakpoint at <addr>", },
{ "dblock", "db", apple2_debug_cmd_dblock, 2, "<from> <to>",
"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, "<from> <to>",
@ -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.

View File

@ -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);