From a0cb814c9ed8eedfd558627be24934af6c257d32 Mon Sep 17 00:00:00 2001 From: Zellyn Hunter Date: Wed, 27 Feb 2013 22:45:03 -0800 Subject: [PATCH] Finally tracked down bug preventing Applesoft running --- cpu/opcodeinstructions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/opcodeinstructions.go b/cpu/opcodeinstructions.go index 831f749..9b485af 100644 --- a/cpu/opcodeinstructions.go +++ b/cpu/opcodeinstructions.go @@ -345,6 +345,7 @@ func pla(c *cpu) { c.r.SP++ c.t.Tick() c.r.A = c.m.Read(0x100 + uint16(c.r.SP)) + c.setNZ(c.r.A) c.t.Tick() }