From d83424251cfba94ee342f7cdba4269990f2f7d86 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Wed, 24 Feb 2016 10:02:30 -0800 Subject: [PATCH] Fixed jr nz,n: should be pc-relative --- z80.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z80.py b/z80.py index ce9130a..ae80d6b 100644 --- a/z80.py +++ b/z80.py @@ -340,7 +340,7 @@ opcodeTable = { 0x1e : [ 2, "ld", "e,n" ], 0x1f : [ 1, "rra", "implied" ], -0x20 : [ 2, "jr", "nz,n" ], +0x20 : [ 2, "jr", "nz,n", pcr ], 0x21 : [ 3, "ld", "hl,nn" ], 0x22 : [ 3, "ld", "indnn,hl" ], 0x23 : [ 1, "inc", "hl" ],