prog8/examples/test.p8
Irmen de Jong 905921a684 IR: new (sys)call instructions that encapsulate the full subroutine call
to fix the bugs resulting from nesting subroutine calls (as param to another call etc)
2023-05-14 15:20:25 +02:00

29 lines
411 B
Lua

%import textio
%import string
%zeropage basicsafe
main {
sub start() {
txt.chrout('!')
txt.print("test")
txt.nl()
; uword seconds_uword = 1
; uword remainder = seconds_uword % $0003 ==0
; txt.print_uw(remainder)
;
; blerp()
}
sub blerp() {
%ir {{
_xxx:
loadr r2,r3
_yyy:
loadr r3,r4
return
}}
}
}