From 63870a0bc8b0346eb10fe6d50a5731574c4364ce Mon Sep 17 00:00:00 2001 From: 4am Date: Mon, 23 Nov 2020 12:46:25 -0500 Subject: [PATCH] shave some cycles (skip if copymask=0, fake bit 3) --- src/fx/fx.dhgr.precomputed.1bit.a | 48 +++++++++++++++++-------------- src/fx/macros.a | 8 ++++++ 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/src/fx/fx.dhgr.precomputed.1bit.a b/src/fx/fx.dhgr.precomputed.1bit.a index 2cfa2aac2..e11a28955 100644 --- a/src/fx/fx.dhgr.precomputed.1bit.a +++ b/src/fx/fx.dhgr.precomputed.1bit.a @@ -15,19 +15,15 @@ inx bne - - lda #%10000001 - sta .copymasks+$60 - sta .mirror_copymasks+$60 - - lda #%10000110 + lda #%00000111 sta .copymasks+$80 sta .mirror_copymasks+$40 - lda #%10011000 + lda #%00011000 sta .copymasks+$A0 sta .mirror_copymasks+$20 - lda #%11100000 + lda #%01100000 sta .copymasks+$C0 sta .mirror_copymasks @@ -81,50 +77,58 @@ input=*+1 sty