prog8/examples/test.p8

30 lines
519 B
Plaintext
Raw Normal View History

%import math
2022-03-13 11:52:12 +00:00
; NOTE: meant to test to virtual machine output target (use -target vitual)
2021-10-30 13:15:11 +00:00
main {
2022-05-17 16:53:18 +00:00
sub start() {
byte xx
byte yy
ubyte ubx
xx = xx
xx = xx*9
xx = yy*9
xx = xx+3*yy
xx = xx/yy
xx = -xx
@($4000) = @($4000)
@($4000) = @($4000) + 2
xx = xx | yy
xx = xx & yy
xx = xx ^ yy
xx = (not xx) as byte
xx = (~xx) as byte
xx++
ubx = not ubx
ubx = ~ubx
2022-03-04 21:26:46 +00:00
}
2022-02-17 23:40:31 +00:00
}