prog8/examples/test.p8
2024-03-22 21:49:01 +01:00

20 lines
309 B
Lua

%import diskio
%zeropage basicsafe
%option no_sysinit
main {
sub start() {
bool @shared flag
cx16.r0L = test(12345, flag, -42)
}
asmsub test(uword arg @AY, bool flag @Pc, byte value @X) -> ubyte @A, bool @Pc {
%asm {{
txa
rts
}}
}
}