2019-02-17 23:12:29 +00:00
|
|
|
// Fills the screen using an unrolled inner ranged for()-loop
|
2018-08-21 23:42:00 +00:00
|
|
|
.pc = $801 "Basic"
|
|
|
|
:BasicUpstart(main)
|
|
|
|
.pc = $80d "Program"
|
|
|
|
main: {
|
|
|
|
.label SCREEN = $400
|
|
|
|
ldx #0
|
|
|
|
b2:
|
|
|
|
txa
|
2018-08-22 10:40:19 +00:00
|
|
|
sta SCREEN,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+1*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+2*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+3*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+4*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+5*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+6*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+7*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+8*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+9*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$a*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$b*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$c*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$d*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$e*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$f*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$10*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$11*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$12*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$13*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$14*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$15*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$16*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$17*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
txa
|
2018-08-22 09:36:38 +00:00
|
|
|
sta SCREEN+$18*$28,x
|
2018-08-21 23:42:00 +00:00
|
|
|
inx
|
|
|
|
cpx #$28
|
|
|
|
bne b2
|
|
|
|
rts
|
|
|
|
}
|