1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-16 21:07:56 +00:00
kickc/src/test/ref/test-comments-loop.asm

25 lines
509 B
NASM

// Commodore 64 PRG executable file
.file [name="test-comments-loop.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
.label SCREEN = $400
ldx #0
// Do some sums
__b1:
// SCREEN[b] = 'a'
lda #'a'
sta SCREEN,x
// for(byte b: 0..10 )
inx
cpx #$b
bne __b1
// }
rts
}