mirror of
https://github.com/irmen/prog8.git
synced 2025-01-13 10:29:52 +00:00
20 lines
253 B
Lua
20 lines
253 B
Lua
main {
|
|
sub foo() {
|
|
cx16.r0++
|
|
}
|
|
asmsub baz() {
|
|
%asm{{
|
|
jsr p8s_foo
|
|
}}
|
|
}
|
|
asmsub bar() {
|
|
%asm{{
|
|
inx
|
|
jmp p8s_foo
|
|
}}
|
|
}
|
|
sub start() {
|
|
bar()
|
|
}
|
|
}
|