2018-01-28 15:19:15 +00:00
|
|
|
.pc = $801 "Basic"
|
|
|
|
:BasicUpstart(main)
|
|
|
|
.pc = $80d "Program"
|
|
|
|
main: {
|
2018-01-31 20:27:22 +00:00
|
|
|
.label SCREEN = $400
|
2019-11-03 19:11:06 +00:00
|
|
|
.const a = $ee6b2800
|
2018-01-28 15:19:15 +00:00
|
|
|
.label b = 2
|
|
|
|
ldx #0
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1:
|
2018-01-28 15:19:15 +00:00
|
|
|
txa
|
|
|
|
clc
|
|
|
|
adc #<a
|
2019-08-07 19:00:19 +00:00
|
|
|
sta.z b
|
2018-01-28 15:19:15 +00:00
|
|
|
lda #>a
|
|
|
|
adc #0
|
2019-08-07 19:00:19 +00:00
|
|
|
sta.z b+1
|
2018-01-28 15:19:15 +00:00
|
|
|
lda #<a>>$10
|
|
|
|
adc #0
|
2019-08-07 19:00:19 +00:00
|
|
|
sta.z b+2
|
2018-01-28 15:19:15 +00:00
|
|
|
lda #>a>>$10
|
|
|
|
adc #0
|
2019-08-07 19:00:19 +00:00
|
|
|
sta.z b+3
|
|
|
|
lda.z b
|
2018-01-28 15:19:15 +00:00
|
|
|
sta SCREEN,x
|
|
|
|
inx
|
|
|
|
cpx #$65
|
2019-09-29 21:13:37 +00:00
|
|
|
bne __b1
|
2018-01-28 15:19:15 +00:00
|
|
|
rts
|
|
|
|
}
|