I thought I could replace code like this:
Ptr1 = $50 ;zero page low byte
Ptr2 = $51 ; zero page hi byte
ldy #$02 lda (Ptr1),y ; 5 cycles AND #%11111100 ;2 cycles sta (Ptr1),y ; 6 cycles, total each group = 13 cycles each
with this, saving cycles. Doesn't seem to work. Can I use AND to take the contents of the accumulator and directly mask it to memory in this way?
Ptr1 is on zero page as is the next byte, Ptr2.
ldy #$02 lda #%11111100 ; 2 cycles AND (Ptr1),y ; 5 cycles, total each group = 7 cycles each














