fixed bug where cpBCDE operands were reversed in jr
This commit is contained in:
parent
94ceaddf3b
commit
f8d9b65977
BIN
bin/FSHa.8xp
BIN
bin/FSHa.8xp
Binary file not shown.
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue