Fixed jr nz,n: should be pc-relative

This commit is contained in:
Rob McMullen 2016-02-24 10:02:30 -08:00
parent 38630d3281
commit d83424251c
1 changed files with 1 additions and 1 deletions

2
z80.py
View File

@ -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" ],