diff --git a/src/fx/fx.hgr.precomputed.1bit.a b/src/fx/fx.hgr.precomputed.1bit.a index ab2f39734..44d4943b1 100644 --- a/src/fx/fx.hgr.precomputed.1bit.a +++ b/src/fx/fx.hgr.precomputed.1bit.a @@ -1,17 +1,6 @@ ;license:MIT ;(c) 2019 by 4am ; -mirror_src1 = $E8 ; word -mirror_dest1 = $EA ; word -mirror_src2 = $EC ; word -mirror_dest2 = $EE ; word -src1 = $F0 ; word -dest1 = $F2 ; word -src2 = $F4 ; word -dest2 = $F6 ; word -reverse_input = $FC ; word -input = $FE ; word - copymasks = $0200 ; $100 bytes but sparse, index is 0..6 but in high 3 bits, so $00, $20, $40, $60, $80, $A0, $C0 mirror_copymasks = $0201 hgrlo = $0300 ; $C0 bytes @@ -27,7 +16,7 @@ hgr1himirror = $BF40 ; $C0 bytes ldx #$27 ldy #$00 - tya - sta .mirror_cols,x + sta .mirror_cols, x iny dex bpl - @@ -65,53 +54,53 @@ hgr1himirror = $BF40 ; $C0 bytes } !macro ROW_X_TO_BASE_ADDRESSES { - lda hgrlo,x - sta dest1 - sta src1 - lda hgr1hi,x - sta dest1+1 + lda hgrlo, x + sta 127 then we're done tax +ROW_X_TO_BASE_ADDRESSES +ROW_X_TO_MIRROR_ADDRESSES inc input - lda (input),y + lda (input), y +HIGH_3_LOW_5 input ; main 1x2 block in top-left quadrant - +COPY_BIT src1, dest1, copymasks - +COPY_BIT src2, dest2, copymasks +src1=*+1 + lda $FDFD, y + eor (