mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-03 00:29:38 +00:00
Disassemble flag now works as intended
This commit is contained in:
parent
ab6e6b03db
commit
74e8a30a4c
11
src/apple2.c
11
src/apple2.c
@ -258,10 +258,6 @@ apple2_boot(apple2 *mach)
|
||||
vm_segment_set16(mach->main, APPLE2_RESET_VECTOR,
|
||||
APPLE2_APPLESOFT_MAIN);
|
||||
|
||||
if (option_flag(OPTION_DISASSEMBLE)) {
|
||||
mos6502_dis_scan(mach->cpu, stdout, 0, mach->main->size);
|
||||
}
|
||||
|
||||
// Run the reset routine to get the machine ready to go.
|
||||
apple2_reset(mach);
|
||||
|
||||
@ -341,14 +337,13 @@ apple2_free(apple2 *mach)
|
||||
void
|
||||
apple2_run_loop(apple2 *mach)
|
||||
{
|
||||
FILE *dlog;
|
||||
FILE *dlog = NULL;
|
||||
|
||||
if (option_flag(OPTION_DISASSEMBLE)) {
|
||||
return;
|
||||
dlog = (FILE *)vm_di_get(VM_DISASM_LOG);
|
||||
vm_reflect_disasm(NULL);
|
||||
}
|
||||
|
||||
dlog = (FILE *)vm_di_get(VM_DISASM_LOG);
|
||||
|
||||
while (vm_screen_active(mach->screen)) {
|
||||
if (vm_debug_broke(mach->cpu->PC)) {
|
||||
mach->paused = true;
|
||||
|
Loading…
Reference in New Issue
Block a user