1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-10-21 17:24:39 +00:00
kickc/src/test/ref/const-int-cast-problem.asm
2019-05-07 23:39:57 +02:00

20 lines
299 B
NASM

// Test a problem with converting casted constant numbers to fixed type constant integers
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.label SCREEN = $400
main: {
ldx #$79
b1:
txa
lsr
lsr
lsr
lsr
sta SCREEN,x
inx
cpx #$7b
bne b1
rts
}