diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-10 14:48:59 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-10 14:48:59 -0400 |
| commit | b6f00172b4e7045a14cebba0a7d4011528a28741 (patch) | |
| tree | 0e5d90ea1bb56085f6b773d54f2f8fdbd90538e9 /6502/src/6502.c | |
| parent | 9ba3ccd51d94e2db6920351eccb9050d1a2c41e1 (diff) | |
6502: More Lua bindings
Diffstat (limited to '6502/src/6502.c')
| -rw-r--r-- | 6502/src/6502.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/6502/src/6502.c b/6502/src/6502.c index add78a0..54013ae 100644 --- a/6502/src/6502.c +++ b/6502/src/6502.c @@ -63,7 +63,7 @@ void l6502_emulate(l6502_emu *e) { case BRK: l6502_push_addr(e, e->pc); l6502_push(e, e->regs[L6502_REG_FLAGS]); - e->pc = l6502_read_addr(e, 0xfffe); + e->pc = l6502_read_addr(e, 0xfffe) - 1; l6502_flag_set(e, L6502_FLAG_BREAK_COMMAND, true); break; case PHP: l6502_push(e, e->regs[L6502_REG_FLAGS]); break; |
