mirror of
https://github.com/irmen/prog8.git
synced 2024-12-25 08:29:25 +00:00
ff715881bc
also for asmsubroutines, but the asm generation for that is not yet done.
33 lines
502 B
Lua
33 lines
502 B
Lua
|
|
main {
|
|
|
|
sub start() {
|
|
ubyte @shared xx
|
|
main.routine.r1arg = 20
|
|
; main.routine2.r2arg = 20 ; TODO asmgen
|
|
|
|
xx = main.routine.r1arg
|
|
xx++
|
|
;xx = main.routine2.r2arg ; TODO asmgen
|
|
;xx++
|
|
|
|
printstuff("hello")
|
|
repeat {
|
|
}
|
|
}
|
|
|
|
sub printstuff(str addr) {
|
|
|
|
}
|
|
sub routine(ubyte r1arg) {
|
|
r1arg++
|
|
}
|
|
|
|
asmsub routine2(ubyte r2arg @ A) {
|
|
%asm {{
|
|
rts
|
|
}}
|
|
}
|
|
|
|
}
|