2020-12-27 01:22:18 +00:00
|
|
|
%import textio
|
2021-01-29 00:52:49 +00:00
|
|
|
%import palette
|
2021-01-27 01:31:20 +00:00
|
|
|
%import syslib
|
2021-01-03 01:45:25 +00:00
|
|
|
%zeropage basicsafe
|
2020-12-08 00:02:38 +00:00
|
|
|
|
2020-12-08 21:54:20 +00:00
|
|
|
main {
|
2020-12-21 23:59:07 +00:00
|
|
|
|
2021-01-10 15:00:22 +00:00
|
|
|
|
2021-01-13 21:32:17 +00:00
|
|
|
sub start() {
|
2021-01-29 00:52:49 +00:00
|
|
|
uword screencolorRGB
|
|
|
|
uword drawcolorRGB
|
|
|
|
ubyte ll
|
|
|
|
ubyte hh
|
2021-01-24 13:03:01 +00:00
|
|
|
|
2021-01-29 00:52:49 +00:00
|
|
|
cx16.vpoke(1, mkword(hh, ll), lsb(screencolorRGB))
|
2021-01-27 01:31:20 +00:00
|
|
|
|
2021-02-01 19:56:04 +00:00
|
|
|
cx16.vpoke(lsb(cx16.r1), cx16.r0, cbits4) ; TODO r0 is alreay in r0, avoid bogus assignment here
|
|
|
|
cbits4 &= gfx2.plot.mask4c[lower2_x_bits] ; TODO why lda..and instead of and mask,y?
|
|
|
|
cbits4 |= colorbits[lower2_x_bits] ; TODO why lda..ora instead of ora mask,y?
|
2021-01-29 00:52:49 +00:00
|
|
|
|
|
|
|
; ubyte value
|
|
|
|
; ubyte bb1
|
|
|
|
;
|
|
|
|
; value = cx16.vpeek(lsb(cx16.r0), mkword(value, bb1))
|
|
|
|
; value = cx16.vpeek(lsb(cx16.r0), mkword(value, bb1))
|
|
|
|
;
|
|
|
|
; ubyte lx = lsb(cx16.r0)
|
|
|
|
; value = cx16.vpeek(lx, mkword(value, bb1))
|
|
|
|
; value = cx16.vpeek(lx, mkword(value, bb1))
|
2021-01-10 14:15:00 +00:00
|
|
|
}
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|