prog8/examples/test.p8

24 lines
397 B
Plaintext
Raw Normal View History

%import textio
2022-01-23 21:34:05 +00:00
%import string
%zeropage basicsafe
2021-10-30 13:15:11 +00:00
main {
sub start() {
uword xx=$ea31
xx = lsb(xx)
uword ww = plot(lsb(xx), msb(xx))
ww=msb(ww)
txt.print_uwhex(ww, true)
}
inline asmsub plot(uword plotx @R0, uword ploty @R1) -> uword @AY{
%asm {{
lda cx16.r0
ldy cx16.r1
rts
}}
}
}