fixed bug where cpBCDE operands were reversed in jr

This commit is contained in:
Stephen Toth 2018-06-24 23:18:47 -04:00
parent 94ceaddf3b
commit f8d9b65977
2 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -7,9 +7,9 @@ fshvarset:
push bc push bc
push de push de
push hl push hl
ld bc, FshVarsSize / 2 + 1 ld bc, FshVarsSize / 2
call cpBCDE call cpBCDE
jr nc, fshvarsetOOBException jr c, fshvarsetOOBException
ld bc, FshVars ld bc, FshVars
ex de, hl ex de, hl
add hl, hl add hl, hl
@ -33,9 +33,9 @@ fshvarget:
push bc push bc
push de push de
ld hl, 0 ld hl, 0
ld bc, FshVarsSize / 2 + 1 ld bc, FshVarsSize / 2
call cpBCDE call cpBCDE
jr nc, fshvargetOOBException jr c, fshvargetOOBException
ld bc, FshVars ld bc, FshVars
ex de, hl ex de, hl
add hl, hl add hl, hl
@ -58,9 +58,9 @@ fshvarcpy:
push bc push bc
push de push de
push hl push hl
ld bc, FshVarsSize / 2 + 1 ld bc, FshVarsSize / 2
call cpBCDE call cpBCDE
jr nc, fshvarcpyOOBException jr c, fshvarcpyOOBException
ld bc, FshVars ld bc, FshVars
add hl, hl add hl, hl
add hl, bc add hl, bc