mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-10-02 22:56:11 +00:00
18 lines
313 B
NASM
18 lines
313 B
NASM
// Illustrates symbolic array lengths
|
|
.pc = $801 "Basic"
|
|
:BasicUpstart(main)
|
|
.pc = $80d "Program"
|
|
.const SZ = $f
|
|
// Fills the array item by item with $is, where i is the item# and s is the sub#
|
|
main: {
|
|
ldx #0
|
|
__b1:
|
|
txa
|
|
sta items,x
|
|
inx
|
|
cpx #SZ+1
|
|
bne __b1
|
|
rts
|
|
}
|
|
items: .fill SZ, 0
|