mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-10 08:31:12 +00:00
small tweaks
This commit is contained in:
parent
f081f94756
commit
0f86f9671b
@ -86,14 +86,11 @@ hgr1himirror = $BF40 ; $C0 bytes
|
|||||||
+BUILD_HGR_LOOKUP_TABLES hgrlo, hgr1hi
|
+BUILD_HGR_LOOKUP_TABLES hgrlo, hgr1hi
|
||||||
+BUILD_MIRROR_COLS mirror_cols
|
+BUILD_MIRROR_COLS mirror_cols
|
||||||
+BUILD_SPARSE_BITMASKS_2BIT copymasks, mirror_copymasks
|
+BUILD_SPARSE_BITMASKS_2BIT copymasks, mirror_copymasks
|
||||||
ldx #(end-start) ; copy InputLoop code to zero page
|
ldx #(end-start-1) ; copy InputLoop code to zero page
|
||||||
- lda start-1, x
|
- lda start, x
|
||||||
sta $FF, x
|
sta $0, x
|
||||||
dex
|
dex
|
||||||
bne -
|
bpl -
|
||||||
+LDADDR .coords
|
|
||||||
sta <input
|
|
||||||
sty <input+1
|
|
||||||
lda #0
|
lda #0
|
||||||
pha
|
pha
|
||||||
pha
|
pha
|
||||||
@ -103,7 +100,7 @@ Exit2Bit rts
|
|||||||
InputLoop
|
InputLoop
|
||||||
ldy #0
|
ldy #0
|
||||||
input=*+1
|
input=*+1
|
||||||
lda $FDFD, y ; first value: HGR row + 1
|
lda .coords, y ; first value: HGR row + 1
|
||||||
beq Exit2Bit ; if 0 then we're done
|
beq Exit2Bit ; if 0 then we're done
|
||||||
tax
|
tax
|
||||||
+ROW_X_TO_2BIT_BASE_ADDRESSES
|
+ROW_X_TO_2BIT_BASE_ADDRESSES
|
||||||
|
@ -111,14 +111,11 @@ hgrhi3c = $BE80 ; $80 bytes
|
|||||||
+BUILD_3BIT_HGR_LOOKUP_TABLES
|
+BUILD_3BIT_HGR_LOOKUP_TABLES
|
||||||
+BUILD_EXTRA_COLS
|
+BUILD_EXTRA_COLS
|
||||||
+BUILD_SPARSE_BITMASKS_3BIT
|
+BUILD_SPARSE_BITMASKS_3BIT
|
||||||
ldx #(end-start) ; copy InputLoop code to zero page
|
ldx #(end-start-1) ; copy InputLoop code to zero page
|
||||||
- lda start-1, x
|
- lda start, x
|
||||||
sta $FF, x
|
sta $0, x
|
||||||
dex
|
dex
|
||||||
bne -
|
bpl -
|
||||||
+LDADDR .coords
|
|
||||||
sta <input
|
|
||||||
sty <input+1
|
|
||||||
lda #0
|
lda #0
|
||||||
pha
|
pha
|
||||||
pha
|
pha
|
||||||
@ -128,7 +125,7 @@ Exit3Bit rts
|
|||||||
InputLoop
|
InputLoop
|
||||||
ldy #0
|
ldy #0
|
||||||
input=*+1
|
input=*+1
|
||||||
lda $FDFD, y
|
lda .coords, y
|
||||||
bmi Exit3Bit ; if high bit is 1 then we're done
|
bmi Exit3Bit ; if high bit is 1 then we're done
|
||||||
cmp #$40
|
cmp #$40
|
||||||
php
|
php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user