mirror of
https://github.com/irmen/prog8.git
synced 2025-08-15 14:27:37 +00:00
test
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user