1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-09 08:54:40 +00:00
kickc/src/test/ref/string-escapes-0.asm
2020-02-23 09:44:36 +01:00

25 lines
433 B
NASM

// Test using some simple supported string escapes \r \f \n \' \"
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.label SCREEN = $400
main: {
ldx #0
__b1:
// while(MESSAGE[i])
lda MESSAGE,x
cmp #0
bne __b2
// }
rts
__b2:
// SCREEN[i] = MESSAGE[i++]
lda MESSAGE,x
sta SCREEN,x
// SCREEN[i] = MESSAGE[i++];
inx
jmp __b1
}
MESSAGE: .text @"\r\f\n\"'\\"
.byte 0