prog8/examples/test.p8

28 lines
332 B
Plaintext
Raw Normal View History

%import textio
%import conv
2021-10-27 21:48:02 +00:00
2021-10-30 13:15:11 +00:00
main {
2021-11-06 18:09:33 +00:00
sub start() {
2021-11-13 11:56:59 +00:00
ubyte @shared xx=20
ubyte @shared yy=10
routine2()
routine2()
routine2()
repeat {
xx++
}
}
asmsub routine2() -> ubyte @A {
%asm {{
adc #20
rts
}}
}
}