prog8/compiler/examples/test.p8

25 lines
341 B
Plaintext
Raw Normal View History

%option enable_floats
2018-08-16 21:10:28 +00:00
2018-09-15 22:59:12 +00:00
~ main {
2018-09-02 16:32:48 +00:00
2018-09-15 22:59:12 +00:00
sub start() -> () {
2018-09-11 22:51:48 +00:00
2018-09-26 23:35:35 +00:00
const word yoffset=100
const float height=20.2
word pixely
2018-09-26 23:35:35 +00:00
float yy
float v
2018-09-26 23:35:35 +00:00
yy = 11.0-(v-22.0)
yy = 11.0-(22.0-v)
yy = (v-22.0)-11.0
yy = (22.0-v)-11.0
2018-09-26 23:35:35 +00:00
yy = 11.0/(v/22.0)
yy = 11.0/(22.0/v)
yy = (v/22.0)/11.0
yy = (22.0/v)/11.0
}
}