1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 22:30:12 +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 72e2751bfd
commit 976c6af74b

View File

@ -62,7 +62,10 @@ test3:
test3a: .byte tmp1 ; verify its 8bit test3a: .byte tmp1 ; verify its 8bit
test3b: .byte tmp1 & $ff ; AND with $ff should work of course test3b: .byte tmp1 & $ff ; AND with $ff should work of course
test3c: .byte tmp1 & $ffff ; AND with $ffff should not change size 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: test3chk:
inx inx
lda test3a lda test3a
@ -85,7 +88,27 @@ test3chk:
jne exiterror jne exiterror
inx 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 cmp #$00
jne exiterror jne exiterror