prog8/examples/test.p8

32 lines
870 B
Plaintext
Raw Normal View History

%import textio
%import palette
2021-01-27 01:31:20 +00:00
%import syslib
%zeropage basicsafe
2020-12-08 00:02:38 +00:00
main {
2021-01-13 21:32:17 +00:00
sub start() {
uword screencolorRGB
uword drawcolorRGB
ubyte ll
ubyte hh
2021-01-24 13:03:01 +00:00
cx16.vpoke(1, mkword(hh, ll), lsb(screencolorRGB))
2021-01-27 01:31:20 +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?
; 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
}