2021-12-21 19:08:33 +01:00
|
|
|
%import textio
|
2022-01-23 22:34:05 +01:00
|
|
|
%import string
|
2022-01-23 13:42:52 +01:00
|
|
|
%zeropage basicsafe
|
2021-12-15 23:43:14 +01:00
|
|
|
|
2021-10-30 15:15:11 +02:00
|
|
|
main {
|
2022-01-18 21:21:49 +01:00
|
|
|
sub start() {
|
2022-01-27 18:05:25 +01: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 23:30:15 +01:00
|
|
|
|
2022-01-27 18:05:25 +01:00
|
|
|
inline asmsub plot(uword plotx @R0, uword ploty @R1) -> uword @AY{
|
|
|
|
%asm {{
|
|
|
|
lda cx16.r0
|
|
|
|
ldy cx16.r1
|
|
|
|
rts
|
|
|
|
}}
|
2022-01-23 02:23:30 +01:00
|
|
|
}
|
2022-01-27 18:05:25 +01:00
|
|
|
|
|
|
|
|
2022-01-23 02:42:26 +01:00
|
|
|
}
|