1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

test some more cases that should not change size

This commit is contained in:
mrdudz 2022-04-26 17:08:19 +02:00
parent a3ae28a81c
commit f7a5f6ed73

View File

@ -62,7 +62,10 @@ test3:
test3a: .byte tmp1 ; verify its 8bit
test3b: .byte tmp1 & $ff ; AND with $ff should work of course
test3c: .byte tmp1 & $ffff ; AND with $ffff should not change size
test3d: .word tmp1 & $ffffff ; AND with $ffffff should not change size
test3d: .byte tmp1 & $ffffff ; AND with $ffffff should not change size
test3e: .byte tmp1 & $ffffffff ; AND with $ffffffff should not change size
test3f: .word tmp1 & $ffffff ; AND with $ffffff should not change size
test3g: .word tmp1 & $ffffffff ; AND with $ffffffff should not change size
test3chk:
inx
lda test3a
@ -85,7 +88,27 @@ test3chk:
jne exiterror
inx
lda test3d+1
lda test3e
cmp #tmp1
jne exiterror
inx
lda test3f
cmp #tmp1
jne exiterror
inx
lda test3f+1
cmp #$00
jne exiterror
inx
lda test3g
cmp #tmp1
jne exiterror
inx
lda test3g+1
cmp #$00
jne exiterror