prog8/compiler/examples/test.p8

19 lines
326 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
word pixely
pixely = A % 0 ; @todo divide 0
pixely = A / 0 ; @todo divide 0
pixely = A // 0 ; @todo divide 0
pixely |= 1 ; pixely = pixely | 1
pixely &= 1 ; pixely = pixely & 1
pixely ^= 1 ; pixely = pixely ^ 1
}
}