mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-24 22:31:40 +00:00
shave some cycles
This commit is contained in:
parent
5336c78acb
commit
2da7d1c180
@ -21,13 +21,11 @@ zpcopymasks3_aux = $E0
|
|||||||
zpcopymasks4_aux = $E8
|
zpcopymasks4_aux = $E8
|
||||||
zpcopymasks5_aux = $F0
|
zpcopymasks5_aux = $F0
|
||||||
zpcopymasks6_aux = $F8
|
zpcopymasks6_aux = $F8
|
||||||
hgrlo = $0200 ; [$C0 bytes, main memory only]
|
hgrlo = $BE00 ; [$C0 bytes, main memory only]
|
||||||
hgr1hi = $0300 ; [$C0 bytes, main memory only]
|
hgr1hi = $BF00 ; [$C0 bytes, main memory only]
|
||||||
|
|
||||||
!macro RESET_HGR_CALC_BY_7 {
|
!macro RESET_HGR_CALC_BY_7 {
|
||||||
lda $27
|
lda hgr1hi, x
|
||||||
sec
|
|
||||||
sbc #$1c
|
|
||||||
sta $27
|
sta $27
|
||||||
eor #$60
|
eor #$60
|
||||||
sta $3d
|
sta $3d
|
||||||
@ -49,8 +47,6 @@ hgr1hi = $0300 ; [$C0 bytes, main memory only]
|
|||||||
!source "src/fx/macros.a"
|
!source "src/fx/macros.a"
|
||||||
!source "src/fx/fx.dhgr.common.a"
|
!source "src/fx/fx.dhgr.common.a"
|
||||||
|
|
||||||
+COPY_SELF_TO_AUXMEM
|
|
||||||
|
|
||||||
ldx #$60
|
ldx #$60
|
||||||
- lda copymasks1-1, x
|
- lda copymasks1-1, x
|
||||||
sta zpcopymasks1-1, x
|
sta zpcopymasks1-1, x
|
||||||
@ -59,6 +55,8 @@ hgr1hi = $0300 ; [$C0 bytes, main memory only]
|
|||||||
|
|
||||||
+BUILD_HGR_LOOKUP_TABLES_X_IS_ALREADY_0 hgrlo, hgr1hi
|
+BUILD_HGR_LOOKUP_TABLES_X_IS_ALREADY_0 hgrlo, hgr1hi
|
||||||
|
|
||||||
|
+COPY_SELF_TO_AUXMEM
|
||||||
|
|
||||||
lda #(40+24+7-1) ; columns + rows + blocks per row - 1
|
lda #(40+24+7-1) ; columns + rows + blocks per row - 1
|
||||||
sta counter
|
sta counter
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user