prog8/examples/test.p8

31 lines
464 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2021-04-08 00:13:02 +00:00
main {
sub start() {
ubyte uu
cx16.rambank(1)
sys.memcopy(&banked.double, $a000, 100)
cx16.rambank(0)
txt.nl()
uword ww
uu = 99
txt.print_ub(uu)
txt.nl()
callfar($01, $a000, &uu)
txt.print_ub(uu)
}
}
banked {
asmsub double(ubyte number @A) -> ubyte @A {
%asm {{
asl a
rts
}}
2021-04-01 20:10:04 +00:00
}
}