mirror of
https://github.com/pevans/erc-c.git
synced 2024-06-11 05:29:33 +00:00
Remove disasm command
This commit is contained in:
parent
da4a82d8cf
commit
a3a32662ef
|
@ -38,8 +38,6 @@ apple2_debug_cmd cmdtable[] = {
|
||||||
"Add breakpoint at <addr>", },
|
"Add breakpoint at <addr>", },
|
||||||
{ "dblock", "db", apple2_debug_cmd_dblock, 2, "<from> <to>",
|
{ "dblock", "db", apple2_debug_cmd_dblock, 2, "<from> <to>",
|
||||||
"Disassemble a block of code", },
|
"Disassemble a block of code", },
|
||||||
{ "disasm", "d", apple2_debug_cmd_disasm, 0, "",
|
|
||||||
"Toggle disassembly", },
|
|
||||||
{ "help", "h", apple2_debug_cmd_help, 0, "",
|
{ "help", "h", apple2_debug_cmd_help, 0, "",
|
||||||
"Print out this list of commands", },
|
"Print out this list of commands", },
|
||||||
{ "hdump", "hd", apple2_debug_cmd_hdump, 2, "<from> <to>",
|
{ "hdump", "hd", apple2_debug_cmd_hdump, 2, "<from> <to>",
|
||||||
|
@ -428,20 +426,6 @@ DEBUG_CMD(step)
|
||||||
apple2_debug_break(cpu->PC);
|
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.
|
* 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.
|
* Useful when you want to see what memory looks like in a given region.
|
||||||
|
|
|
@ -276,14 +276,6 @@ Test(apple2_debug, cmd_step)
|
||||||
|
|
||||||
/* Test(apple2_debug, cmd_quit) */
|
/* 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)
|
Test(apple2_debug, cmd_dblock)
|
||||||
{
|
{
|
||||||
mos6502_set(mach->cpu, 0, 0xEA);
|
mos6502_set(mach->cpu, 0, 0xEA);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user