prog8/examples/test.p8

36 lines
488 B
Plaintext
Raw Normal View History

2019-01-26 21:46:01 +00:00
%import c64utils
2019-01-27 21:59:40 +00:00
%option enable_floats
2019-01-26 21:46:01 +00:00
~ main {
sub start() {
2019-01-27 21:59:40 +00:00
ubyte @zp ub = 22
byte @zp b = 22
word @zp w = 2222
uword @zp uw = 2222
2019-01-27 21:59:40 +00:00
byte nonzp1 = 42
byte nonzp2 = 42
byte nonzp3 = 42
foo.bar()
2019-01-27 00:02:45 +00:00
}
2019-01-27 21:59:40 +00:00
}
2019-01-27 21:59:40 +00:00
~ foo {
2019-01-27 21:59:40 +00:00
sub bar() {
ubyte @zp ub = 33
byte @zp b = 33
word @zp w = 3333
uword @zp uw = 3333
2019-01-26 21:46:01 +00:00
2019-01-27 21:59:40 +00:00
word nonzp1 = 4444
word nonzp2 = 4444
word nonzp3 = 4444
A=55
}
}