2021-12-21 18:08:33 +00:00
|
|
|
%import textio
|
2022-01-23 21:34:05 +00:00
|
|
|
%import string
|
2022-01-23 12:42:52 +00:00
|
|
|
%zeropage basicsafe
|
2021-12-15 22:43:14 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2022-01-18 20:21:49 +00:00
|
|
|
sub start() {
|
2022-01-27 17:05:25 +00:00
|
|
|
uword xx=$ea31
|
|
|
|
xx = lsb(xx)
|
|
|
|
uword ww = plot(lsb(xx), msb(xx))
|
|
|
|
ww=msb(ww)
|
|
|
|
txt.print_uwhex(ww, true)
|
|
|
|
}
|
2022-01-24 22:30:15 +00:00
|
|
|
|
2022-01-27 17:05:25 +00:00
|
|
|
inline asmsub plot(uword plotx @R0, uword ploty @R1) -> uword @AY{
|
|
|
|
%asm {{
|
|
|
|
lda cx16.r0
|
|
|
|
ldy cx16.r1
|
|
|
|
rts
|
|
|
|
}}
|
2022-01-23 01:23:30 +00:00
|
|
|
}
|
2022-01-27 17:05:25 +00:00
|
|
|
|
|
|
|
|
2022-01-23 01:42:26 +00:00
|
|
|
}
|