prog8/compiler/examples/test.p8

54 lines
578 B
Plaintext
Raw Normal View History

2018-10-11 07:54:26 +00:00
%option enable_floats
2018-08-16 21:10:28 +00:00
2018-09-15 22:59:12 +00:00
~ main {
2018-10-01 20:23:16 +00:00
sub start() {
2018-10-15 00:49:59 +00:00
memory ubyte mub = $c400
memory ubyte mub2 = $c401
memory uword muw = $c500
memory uword muw2 = $c502
memory byte mb = $c000
memory word mw = $c002
byte b
ubyte ub = $c4
ubyte ub2 = $c4
uword uw = $c500
uword uw2 = $c502
word ww
mub=5
muw=4444
mb=-100
mw=-23333
; b++
; A++
; XY++
; mub++
; ub++
; uw++
; ww++
; mb++
; mw++
;
; b--
; A--
; XY--
; mub--
; ub--
; uw--
; ww--
; mb--
; mw--
2018-10-07 23:20:53 +00:00
2018-10-15 00:49:59 +00:00
return
2018-10-04 18:47:52 +00:00
}
2018-10-13 14:09:10 +00:00
}