diff --git a/src/d6502/cpu.d b/src/d6502/cpu.d index a7de8f7..f88f6bf 100644 --- a/src/d6502/cpu.d +++ b/src/d6502/cpu.d @@ -736,7 +736,7 @@ class Cpu(bool strict, bool cumulative) : CpuBase!(strict, cumulative) { peek(programCounter); flag.fromByte(pull()); - programCounter = pullWord(); + programCounter = readStack() | (readStack() << 8); static if (cumulative) tick(totalCycles); }