prog8/examples/test.p8
Irmen de Jong cc96ab7a9b assignment source now also treats cx16.r[0-15] as registers
no longer create useless assignment code for r0=r0
2021-02-06 13:01:45 +01:00

21 lines
431 B
Lua

%import textio
%import palette
%import syslib
%zeropage basicsafe
main {
sub start() {
ubyte lower2_x_bits=1
ubyte cbits4
ubyte operand
cbits4 &= operand
cbits4 |= operand
;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?
}
}