2021-04-18 11:53:02 +00:00
|
|
|
%import textio
|
2021-04-25 15:47:13 +00:00
|
|
|
%zeropage basicsafe
|
2021-04-18 11:53:02 +00:00
|
|
|
|
2021-04-08 00:13:02 +00:00
|
|
|
main {
|
2021-04-18 21:03:18 +00:00
|
|
|
|
2021-04-17 23:56:26 +00:00
|
|
|
sub start() {
|
2021-04-25 15:47:13 +00:00
|
|
|
ubyte uu
|
|
|
|
cx16.rambank(1)
|
|
|
|
sys.memcopy(&banked.double, $a000, 100)
|
|
|
|
cx16.rambank(0)
|
|
|
|
txt.nl()
|
2021-04-21 18:21:58 +00:00
|
|
|
|
2021-04-25 15:47:13 +00:00
|
|
|
uword ww
|
|
|
|
uu = 99
|
|
|
|
txt.print_ub(uu)
|
|
|
|
txt.nl()
|
|
|
|
callfar($01, $a000, &uu)
|
|
|
|
txt.print_ub(uu)
|
|
|
|
}
|
|
|
|
}
|
2021-04-21 20:45:03 +00:00
|
|
|
|
|
|
|
|
2021-04-25 15:47:13 +00:00
|
|
|
banked {
|
|
|
|
asmsub double(ubyte number @A) -> ubyte @A {
|
|
|
|
%asm {{
|
|
|
|
asl a
|
|
|
|
rts
|
|
|
|
}}
|
2021-04-01 20:10:04 +00:00
|
|
|
}
|
|
|
|
}
|