prog8/examples/test.p8
Irmen de Jong ff715881bc allow scoped identifiers to reference a subroutine parameter directly.
also for asmsubroutines, but the asm generation for that is not yet done.
2021-11-21 23:21:39 +01:00

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
}}
}
}