2021-10-27 21:48:02 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2021-11-06 18:09:33 +00:00
|
|
|
|
2021-11-09 23:17:56 +00:00
|
|
|
sub start() {
|
2021-11-21 22:21:39 +00:00
|
|
|
ubyte @shared xx
|
|
|
|
main.routine.r1arg = 20
|
|
|
|
; main.routine2.r2arg = 20 ; TODO asmgen
|
2021-11-13 11:56:59 +00:00
|
|
|
|
2021-11-21 22:21:39 +00:00
|
|
|
xx = main.routine.r1arg
|
2021-11-21 15:23:48 +00:00
|
|
|
xx++
|
2021-11-21 22:21:39 +00:00
|
|
|
;xx = main.routine2.r2arg ; TODO asmgen
|
|
|
|
;xx++
|
2021-11-20 23:07:17 +00:00
|
|
|
|
2021-11-21 22:21:39 +00:00
|
|
|
printstuff("hello")
|
2021-11-20 23:07:17 +00:00
|
|
|
repeat {
|
|
|
|
}
|
2021-11-16 22:52:30 +00:00
|
|
|
}
|
2021-11-21 11:34:57 +00:00
|
|
|
|
2021-11-21 22:21:39 +00:00
|
|
|
sub printstuff(str addr) {
|
|
|
|
|
|
|
|
}
|
|
|
|
sub routine(ubyte r1arg) {
|
|
|
|
r1arg++
|
|
|
|
}
|
|
|
|
|
|
|
|
asmsub routine2(ubyte r2arg @ A) {
|
|
|
|
%asm {{
|
|
|
|
rts
|
|
|
|
}}
|
2021-11-21 15:23:48 +00:00
|
|
|
}
|
2021-11-21 22:21:39 +00:00
|
|
|
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|