prog8/examples/test.p8

36 lines
650 B
Plaintext
Raw Normal View History

%import c64utils
%import c64flt
2019-01-02 22:32:41 +00:00
~ main {
2019-01-01 20:47:19 +00:00
2019-01-05 17:02:17 +00:00
sub start() {
2019-01-11 01:35:57 +00:00
ubyte i = 10
ubyte ub2
byte j = 5
byte b2
uword uw = 1000
uword uw2
word w = 1000
word w2
float f1 = 1.1
float f2 = 2.2
2019-01-11 21:15:05 +00:00
b2 = j + (-1)
b2 = (-1) + j
b2 = j - (-1)
b2 = (-1) -j ; should not be reordered
b2 = j+1
b2 = 1+j
b2 = 1-j ; should not be reordered
2019-01-11 21:15:05 +00:00
j = j + (-1)
j = (-1) + j
j = j - (-1)
j = (-1) -j ; should not be reordered
j = j+1
j = 1+j
j = 1-j ; should not be reordered
}
2019-01-02 22:32:41 +00:00
}