mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-17 07:31:19 +00:00
shave some bytes
This commit is contained in:
parent
6d288a2df4
commit
15e9372b7d
@ -40,23 +40,16 @@ RowLoop
|
|||||||
sta src+1
|
sta src+1
|
||||||
|
|
||||||
ldx mask1
|
ldx mask1
|
||||||
lda copymasks_even, x
|
|
||||||
sta @even1
|
|
||||||
lda copymasks_odd, x
|
|
||||||
sta @odd1
|
|
||||||
|
|
||||||
ldy #39
|
ldy #39
|
||||||
- lda (src), y
|
- lda (src), y
|
||||||
eor (dst), y ; merge source and destination bits
|
eor (dst), y ; merge source and destination bits
|
||||||
@odd1=*+1
|
and copymasks_odd, x ; isolate the bits to replace, zero the rest
|
||||||
and #$FD ; [SMC] isolate the bits to replace, zero the rest
|
|
||||||
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
||||||
sta (dst), y ; write the result
|
sta (dst), y ; write the result
|
||||||
dey
|
dey
|
||||||
lda (src), y
|
lda (src), y
|
||||||
eor (dst), y ; merge source and destination bits
|
eor (dst), y ; merge source and destination bits
|
||||||
@even1=*+1
|
and copymasks_even, x ; isolate the bits to replace, zero the rest
|
||||||
and #$FD ; [SMC] isolate the bits to replace, zero the rest
|
|
||||||
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
||||||
sta (dst), y ; write the result
|
sta (dst), y ; write the result
|
||||||
dey
|
dey
|
||||||
@ -72,23 +65,16 @@ RowLoop
|
|||||||
sta src+1
|
sta src+1
|
||||||
|
|
||||||
ldx mask2
|
ldx mask2
|
||||||
lda copymasks_even, x
|
|
||||||
sta @even2
|
|
||||||
lda copymasks_odd, x
|
|
||||||
sta @odd2
|
|
||||||
|
|
||||||
ldy #39
|
ldy #39
|
||||||
- lda (src), y
|
- lda (src), y
|
||||||
eor (dst), y ; merge source and destination bits
|
eor (dst), y ; merge source and destination bits
|
||||||
@odd2=*+1
|
and copymasks_odd, x ; isolate the bits to replace, zero the rest
|
||||||
and #$FD ; [SMC] isolate the bits to replace, zero the rest
|
|
||||||
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
||||||
sta (dst), y ; write the result
|
sta (dst), y ; write the result
|
||||||
dey
|
dey
|
||||||
lda (src), y
|
lda (src), y
|
||||||
eor (dst), y ; merge source and destination bits
|
eor (dst), y ; merge source and destination bits
|
||||||
@even2=*+1
|
and copymasks_even, x ; isolate the bits to replace, zero the rest
|
||||||
and #$FD ; [SMC] isolate the bits to replace, zero the rest
|
|
||||||
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
eor (dst), y ; unmerge source and destination bits, leaves 'to keep' destination bits intact
|
||||||
sta (dst), y ; write the result
|
sta (dst), y ; write the result
|
||||||
dey
|
dey
|
||||||
|
Loading…
x
Reference in New Issue
Block a user