mirror of
https://github.com/irmen/prog8.git
synced 2024-09-07 03:54:27 +00:00
28 lines
332 B
Lua
28 lines
332 B
Lua
%import textio
|
|
%import conv
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
|
|
ubyte @shared xx=20
|
|
ubyte @shared yy=10
|
|
|
|
routine2()
|
|
routine2()
|
|
routine2()
|
|
|
|
repeat {
|
|
xx++
|
|
}
|
|
}
|
|
|
|
asmsub routine2() -> ubyte @A {
|
|
%asm {{
|
|
adc #20
|
|
rts
|
|
}}
|
|
}
|
|
|
|
}
|