mirror of
https://github.com/pevans/erc-c.git
synced 2025-02-17 07:32:05 +00:00
Execute will no longer run if PC is at a breakpoint
This commit is contained in:
parent
588362abee
commit
c17616c383
@ -14,6 +14,7 @@
|
||||
#include "log.h"
|
||||
#include "mos6502.h"
|
||||
#include "mos6502.dis.h"
|
||||
#include "vm_debug.h"
|
||||
|
||||
// All of our address modes, instructions, etc. are defined here.
|
||||
#include "mos6502.enums.h"
|
||||
@ -363,6 +364,10 @@ mos6502_execute(mos6502 *cpu)
|
||||
mos6502_address_resolver resolver;
|
||||
mos6502_instruction_handler handler;
|
||||
|
||||
if (vm_debug_broke(cpu->PC)) {
|
||||
return;
|
||||
}
|
||||
|
||||
opcode = mos6502_get(cpu, cpu->PC);
|
||||
|
||||
// The disassembler knows how many bytes each operand requires
|
||||
|
Loading…
x
Reference in New Issue
Block a user