Contact Details
@Menyiques
Compiler version
v1.18.7
What happened?
Compiling:
Dim a as uByte
Dim s as uByte
a = 1
s = 10
If a and s >= 6 Then s = 2
print s
with zxbc -O 2 bug.bas -o bug.asm -A
(O=1,2,3,4)
generates:
.core.MAIN_PROGRAM:
ld a, 1
ld (_a), a
ld a, 10
ld (_s), a
sub 6
ccf
sbc a, a
ld h, a
pop af ; <<< orphan: no matching "push af" anywhere
or a
jr z, .LABEL.__LABEL2
ld a, h
.LABEL.__LABEL2:
or a
jp z, .LABEL.__LABEL1
Error and Warning messages
Code of Conduct
Contact Details
@Menyiques
Compiler version
v1.18.7
What happened?
Compiling:
Dim a as uByte
Dim s as uByte
a = 1
s = 10
If a and s >= 6 Then s = 2
print s
with zxbc -O 2 bug.bas -o bug.asm -A
(O=1,2,3,4)
generates:
.core.MAIN_PROGRAM:
ld a, 1
ld (_a), a
ld a, 10
ld (_s), a
sub 6
ccf
sbc a, a
ld h, a
pop af ; <<< orphan: no matching "push af" anywhere
or a
jr z, .LABEL.__LABEL2
ld a, h
.LABEL.__LABEL2:
or a
jp z, .LABEL.__LABEL1
Error and Warning messages
Code of Conduct