mirror of
https://github.com/irmen/prog8.git
synced 2025-01-12 19:29:50 +00:00
test
This commit is contained in:
parent
3f3b01b5f6
commit
e94319145f
@ -8,22 +8,13 @@ main {
|
||||
rsavex()
|
||||
|
||||
ubyte @shared ub
|
||||
void asmfoo(42)
|
||||
main.asmfoo.arg = 42
|
||||
main.normalfoo.arg=99
|
||||
; normalfoo(42)
|
||||
void normalfoo(42)
|
||||
somelabel:
|
||||
ub++
|
||||
txt.print_ub(ub)
|
||||
}
|
||||
|
||||
asmsub asmfoo(ubyte arg @Y) -> ubyte @Y {
|
||||
%asm {{
|
||||
iny
|
||||
rts
|
||||
}}
|
||||
}
|
||||
|
||||
sub normalfoo(ubyte arg) -> ubyte {
|
||||
arg++
|
||||
return 42
|
||||
|
Loading…
x
Reference in New Issue
Block a user