mirror of
https://github.com/irmen/prog8.git
synced 2024-08-11 21:29:03 +00:00
27 lines
444 B
Lua
27 lines
444 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte xx = wobwob()
|
|
txt.print_ub(xx)
|
|
uword yy = wobwob2()
|
|
txt.print_uw(yy)
|
|
|
|
asmsub wobwob() -> bool @Pc {
|
|
%asm {{
|
|
sec
|
|
rts
|
|
}}
|
|
}
|
|
|
|
asmsub wobwob2() -> bool @Pc {
|
|
%asm {{
|
|
clc
|
|
rts
|
|
}}
|
|
}
|
|
}
|
|
}
|