mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-01 00:29:57 +00:00
shave some bytes
This commit is contained in:
parent
0a2dfcb7e0
commit
b6a7b15f80
@ -224,9 +224,8 @@ BoxLoop ldy BoxStages-1, x ; for each box, get its current stage
|
||||
beq NextBox ; if stage's drawing routine is 0, nothing to do
|
||||
stx box
|
||||
sta j+2
|
||||
lda BoxesX-1, x
|
||||
lda BoxesX-1, x ; A = starting HGR row for this box
|
||||
ldy BoxesY-1, x ; Y = starting byte offset for this box
|
||||
tax ; X = starting HGR row for this box
|
||||
clc
|
||||
j jsr $0000 ; [SMC] call drawing routine for this stage
|
||||
ldx box
|
||||
@ -310,12 +309,11 @@ INX_AND_RECALC_E
|
||||
;
|
||||
SET_ROW_COUNT
|
||||
ROW_COUNT=*+1
|
||||
lda #$1D ; SMC
|
||||
sta rowcount
|
||||
ldx #$1D ; SMC
|
||||
stx rowcount
|
||||
SET_ROW_COUNT_E
|
||||
;
|
||||
SET_FIRST_ROW
|
||||
txa
|
||||
FIRST_ROW=*+1
|
||||
adc #$0E ; SMC
|
||||
tax
|
||||
@ -392,10 +390,10 @@ MASKCOPY_POST
|
||||
MASKCOPY_POST_E
|
||||
;
|
||||
MIDDLE_JSR
|
||||
!byte $20,$47
|
||||
!byte $20,$46
|
||||
MIDDLE_JSR_E
|
||||
OUTER_JSR
|
||||
!byte $20,$48
|
||||
!byte $20,$47
|
||||
OUTER_JSR_E
|
||||
;
|
||||
!byte 1 ; current page
|
||||
|
@ -216,9 +216,8 @@ BoxLoop ldy BoxStages-1, x ; for each box, get its current stage
|
||||
beq NextBox ; if stage's drawing routine is 0, nothing to do
|
||||
stx box
|
||||
sta j+2
|
||||
lda BoxesX-1, x
|
||||
lda BoxesX-1, x ; A = starting HGR row for this box
|
||||
ldy BoxesY-1, x ; Y = starting byte offset for this box
|
||||
tax ; X = starting HGR row for this box
|
||||
clc
|
||||
j jsr $0000 ; [SMC] call drawing routine for this stage
|
||||
ldx box
|
||||
@ -260,9 +259,8 @@ INX_AND_RECALC_E
|
||||
RECALC_AND_INY_E
|
||||
STAGE_INIT ; 8 bytes
|
||||
ROW_COUNT=*+1
|
||||
lda #$1F ; SMC
|
||||
sta rowcount
|
||||
txa
|
||||
ldx #$1F ; SMC
|
||||
stx rowcount
|
||||
FIRST_ROW=*+1
|
||||
adc #$0E ; SMC
|
||||
tax
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10802701
|
||||
!be24 10802649
|
||||
!le16 4244
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10755812
|
||||
!be24 10755760
|
||||
!le16 5223
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10699023
|
||||
!be24 10698971
|
||||
!le16 3593
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10711400
|
||||
!be24 10711348
|
||||
!le16 3953
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10726806
|
||||
!be24 10726754
|
||||
!le16 4628
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10744088
|
||||
!be24 10744036
|
||||
!le16 5575
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10806945
|
||||
!be24 10806893
|
||||
!le16 410
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10807753
|
||||
!be24 10807701
|
||||
!le16 448
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10808201
|
||||
!be24 10808149
|
||||
!le16 303
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10763181
|
||||
!be24 10763129
|
||||
!le16 1242
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10801371
|
||||
!be24 10801319
|
||||
!le16 1249
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10787361
|
||||
!be24 10787309
|
||||
!le16 464
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10761035
|
||||
!be24 10760983
|
||||
!le16 2146
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10764423
|
||||
!be24 10764371
|
||||
!le16 6149
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10807445
|
||||
!be24 10807393
|
||||
!le16 107
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10802620
|
||||
!be24 10802568
|
||||
!le16 81
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10807552
|
||||
!be24 10807500
|
||||
!le16 201
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10787825
|
||||
!be24 10787773
|
||||
!le16 4407
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10792232
|
||||
!be24 10792180
|
||||
!le16 1533
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10793765
|
||||
!be24 10793713
|
||||
!le16 1040
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10794805
|
||||
!be24 10794753
|
||||
!le16 3237
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10798042
|
||||
!be24 10797990
|
||||
!le16 2764
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10800806
|
||||
!be24 10800754
|
||||
!le16 460
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10801266
|
||||
!be24 10801214
|
||||
!le16 105
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10808504
|
||||
!be24 10808452
|
||||
!le16 2370
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10775466
|
||||
!be24 10775414
|
||||
!le16 6149
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10749663
|
||||
!be24 10749611
|
||||
!le16 6149
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10690991
|
||||
!be24 10690939
|
||||
!le16 8032
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10702616
|
||||
!be24 10702564
|
||||
!le16 8784
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10715353
|
||||
!be24 10715301
|
||||
!le16 11453
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10731434
|
||||
!be24 10731382
|
||||
!le16 12654
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10807355
|
||||
!be24 10807303
|
||||
!le16 90
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10770572
|
||||
!be24 10770520
|
||||
!le16 4894
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 10781615
|
||||
!be24 10781563
|
||||
!le16 5746
|
||||
|
Loading…
Reference in New Issue
Block a user