shave some bytes

This commit is contained in:
4am 2020-10-25 11:49:07 -04:00
parent bea329652a
commit 928c9dfd9f

View File

@ -81,8 +81,8 @@ hgrlo = $300 ; [$C0 bytes]
bne - bne -
--- ldx #6 --- ldx #6
stx maskindex -- stx maskindex
-- ldy #$7F ldy #$7F
- lda MIDDLE_STAGE, y - lda MIDDLE_STAGE, y
sta (m_dst), y sta (m_dst), y
lda OUTER_STAGE, y lda OUTER_STAGE, y
@ -90,18 +90,19 @@ hgrlo = $300 ; [$C0 bytes]
dey dey
bpl - bpl -
ldx maskindex
lda MiddleRowCounts, x lda MiddleRowCounts, x
ldy #m_rowcount ldy #m_rowcount
sta (m_dst), y sta (m_dst), y
lda OuterRowCounts, x clc
adc #$0E
;; ldy #o_rowcount ;; ldy #o_rowcount
sta (o_dst), y sta (o_dst), y
lda MiddleFirstRows, x lda MiddleFirstRows, x
ldy #m_firstrow ldy #m_firstrow
sta (m_dst), y sta (m_dst), y
lda OuterFirstRows, x sec
sbc #$07
;; ldy #o_firstrow ;; ldy #o_firstrow
sta (o_dst), y sta (o_dst), y
@ -153,7 +154,8 @@ hgrlo = $300 ; [$C0 bytes]
dec o_dst+1 dec o_dst+1
dec stage dec stage
bmi + bmi +
dec maskindex ldx maskindex
dex
+LBMI --- +LBMI ---
jmp -- jmp --
+ +
@ -449,12 +451,8 @@ copy0F=$9B00
MiddleFirstRows MiddleFirstRows
!byte $0D,$0C,$0B,$0A,$09,$08,$07 !byte $0D,$0C,$0B,$0A,$09,$08,$07
OuterFirstRows
!byte $06,$05,$04,$03,$02,$01,$00
MiddleRowCounts MiddleRowCounts
!byte $05,$07,$09,$0B,$0D,$0F,$11 !byte $05,$07,$09,$0B,$0D,$0F,$11
OuterRowCounts
!byte $13,$15,$17,$19,$1B,$1D,$1F
EdgeLeftMasks EdgeLeftMasks
!byte %11000000 !byte %11000000
!byte %11100000 !byte %11100000