prog8/compiler/examples/test.p8

27 lines
546 B
Plaintext
Raw Normal View History

%import c64utils
%option enable_floats
2018-10-16 00:26:35 +00:00
~ main {
2018-11-11 17:19:08 +00:00
2018-12-17 14:52:37 +00:00
memory ubyte[40] screen = $0400
2018-12-17 00:59:04 +00:00
2018-12-17 14:52:37 +00:00
poke()
sub start() {
float t = 0.0
while(true) {
ubyte x = lsb(round(sin(t)*15.0))+20
ubyte y = lsb(round(cos(t)*10.0))+12
; vm_gfx_text(x, y, 1, "*")
;vm_gfx_pixel(x,y,1)
; c64scr.print_ubyte_decimal(x)
; c64.CHROUT(',')
; c64scr.print_ubyte_decimal(y)
; c64.CHROUT('\n')
screen[x] = '*'
t+=0.1
}
}
}
2018-12-12 00:13:13 +00:00