prog8/examples/test.p8

33 lines
391 B
Plaintext
Raw Normal View History

%import c64utils
%import c64flt
2019-07-01 21:41:30 +00:00
%zeropage basicsafe
2019-08-04 13:33:00 +00:00
%option enable_floats
2019-03-29 01:13:28 +00:00
2019-07-29 21:11:13 +00:00
main {
sub start() {
2019-08-04 16:40:50 +00:00
ubyte x=3
ubyte y=2
ubyte a=1
ubyte s=0
float repr=4.4
;memset(c64.Screen, 40, 1)
;memset(c64.Screen+40, 80, 2)
A=x
A=y
Y=a
A=s
}
sub foo() {
x:
s:
y:
a:
A=3
2019-08-04 13:33:00 +00:00
}
}