mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-10-21 02:24:34 +00:00
17 lines
192 B
NASM
17 lines
192 B
NASM
.pc = $801 "Basic"
|
|
:BasicUpstart(main)
|
|
.pc = $80d "Program"
|
|
main: {
|
|
.label buf = $1100
|
|
ldx #5
|
|
b1:
|
|
txa
|
|
clc
|
|
adc #2+2
|
|
sta buf,x
|
|
inx
|
|
cpx #$a
|
|
bcc b1
|
|
rts
|
|
}
|