prog8/compiler/examples/test.p8

49 lines
667 B
Plaintext
Raw Normal View History

%option enable_floats
2018-08-16 21:10:28 +00:00
2018-10-02 22:25:04 +00:00
2018-09-15 22:59:12 +00:00
~ main {
2018-10-01 20:23:16 +00:00
sub start() {
byte x
for x in 0 to 20 {
float xx = sin(flt(x))
float yy = cos(flt(x))
}
while(1) {
float xx = sin(flt(x))
float yy = cos(flt(x))
}
repeat {
float xx = sin(flt(x))
float yy = cos(flt(x))
} until(1)
; for x in 0 to 30 {
; float xx = 2123.33
; float yy = 2444.55
; xx = sin(flt(x))
; yy = cos(flt(x))
; r = xx*yy
; }
;
; for x in 0 to 40 {
; float xx = 3123.33
; float yy = 3444.55
; xx = sin(flt(x))
; yy = cos(flt(x))
; r = xx*yy
; }
return
}
2018-10-04 18:47:52 +00:00
}