1
0
mirror of https://github.com/a2-4am/4sports.git synced 2025-04-30 18:37:23 +00:00

fix some prelaunchers

This commit is contained in:
4am 2024-04-21 15:43:11 -04:00
parent adbb1d8dbe
commit 2da68a8cd7
75 changed files with 100 additions and 103 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -9,7 +9,7 @@
jsr decrunch
!if * != $211F {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JMP at ", *
}
jmp $4000

@ -21,7 +21,7 @@
jsr decrunch_no_reset_progress ; decompress more data into $6000/main
!if * != $485C {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JMP at ", *
}
jmp $AEE0

@ -16,7 +16,7 @@ SHOW_PROGRESS_DURING_DECRUNCH = 0
start
+INIT_MACHINE
!if * != $B8B4 {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to change JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -17,7 +17,7 @@ kExoProgressWidth = 18 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $B9ED {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -16,7 +16,7 @@ SHOW_PROGRESS_DURING_DECRUNCH = 0
start
+INIT_MACHINE
!if * != $9C5F {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
jmp $800

@ -17,7 +17,7 @@ kExoProgressWidth = 14 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $AD5C {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
jsr ROM_TEXT ; game expects current VTAB to be at bottom

@ -23,7 +23,7 @@ start
bit HIRES
bit FULLGFX
!if * != $BC4D {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; decompress game code at $4000
jmp $4000

@ -22,10 +22,10 @@ start
bit PAGE1
bit HIRES
bit FULLGFX
jsr decrunch_no_reset_progress
!if * != $B8A9 {
!serious "Adjust prelaunch to patch JSR at ", *
!if * != $B8A6 {
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch_no_reset_progress
jsr $900
bit CLEARKBD
jsr PRODOS_MLI

@ -17,7 +17,7 @@ kExoProgressWidth = 19 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $B9AD {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -22,10 +22,10 @@ start
bit PAGE1
bit HIRES
bit FULLGFX
jsr decrunch_no_reset_progress
!if * != $B057 {
!serious "Adjust prelaunch to patch JSR at ", *
!if * != $B054 {
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch_no_reset_progress
jsr $900
bit CLEARKBD
jsr PRODOS_MLI

@ -28,7 +28,7 @@ start
@next iny
bne @loop
!if * != $9667 {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -16,7 +16,7 @@ SHOW_PROGRESS_DURING_DECRUNCH = 0
start
+INIT_MACHINE
!if * != $18B6 {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
jmp $5000

@ -16,7 +16,7 @@ SHOW_PROGRESS_DURING_DECRUNCH = 0
start
+INIT_MACHINE
!if * != $9E01 {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
jmp $2000

@ -16,7 +16,7 @@ SHOW_PROGRESS_DURING_DECRUNCH = 0
start
+INIT_MACHINE
!if * != $A6A5 {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
jmp $2000

@ -22,10 +22,10 @@ start
bit PAGE1
bit HIRES
bit FULLGFX
jsr decrunch_no_reset_progress
!if * != $B1A0 {
!serious "Adjust prelaunch to patch JSR at ", *
!if * != $B19D {
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch_no_reset_progress
jsr $900
bit CLEARKBD
jsr PRODOS_MLI

@ -17,7 +17,7 @@ kExoProgressWidth = 18 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $B75E {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -22,6 +22,9 @@ start
bit PAGE1
bit HIRES
bit FULLGFX
!if * != $B915 {
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch_no_reset_progress
jsr $900
ldx #$20
@ -34,9 +37,6 @@ start
inc @b+2
dex
bne @a
!if * != $B931 {
!serious "Adjust prelaunch to patch JSR at ", *
}
jsr $906
bit CLEARKBD
jsr PRODOS_MLI

@ -17,7 +17,7 @@ kExoProgressWidth = 18 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $BC5B {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -18,10 +18,10 @@ kExoProgressWidth = 12 ; depends on total size, max 38
start
+INIT_MACHINE
jsr decrunch ; compressed data contains target address
jsr decrunch_no_reset_progress
!if * != $AA2F {
!serious "Adjust prelaunch to RTS at ", *
!if * != $AA2C {
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch_no_reset_progress
bit GFXMODE
bit PAGE2
bit HIRES

@ -41,11 +41,10 @@
sta _byte_lo
lda #$50
sta _byte_hi
jsr decrunch_no_reset_progress
!if * != $879 {
!serious "Adjust prelaunch to patch JSR at ", *
!if * != $876 {
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch_no_reset_progress
jmp $4000
parm_obj_x_open

@ -22,6 +22,9 @@ start
bit PAGE1
bit HIRES
bit FULLGFX
!if * != $B26D {
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch_no_reset_progress
ldx #$0C
ldy #$00
@ -37,9 +40,6 @@ start
sta $5101
lda #>load_level
sta $5102
!if * != $B290 {
!serious "Adjust prelaunch to patch JSR at ", *
}
jsr $900
bit CLEARKBD
jsr PRODOS_MLI

@ -20,7 +20,7 @@ start
+INIT_MACHINE
jsr title
!if * != $9FB3 {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
jmp $404B

@ -27,7 +27,7 @@ print_loop
bne print_loop
+
!if * != $B55F {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -17,7 +17,7 @@ kExoProgressWidth = 18 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $B9DE {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -17,7 +17,7 @@ kExoProgressWidth = 19 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $BA3C {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
bit GFXMODE

@ -17,7 +17,7 @@ kExoProgressWidth = 13 ; depends on total size, max 38
start
+INIT_MACHINE
!if * != $356C {
!serious "Adjust prelaunch to patch JSR at ", *
!serious "Adjust prelaunch to patch JSR at ", *, " to JMP"
}
jsr decrunch ; compressed data contains target address
jmp $4000

@ -22,6 +22,9 @@ start
bit PAGE1
bit HIRES
bit FULLGFX
!if * != $B9BC {
!serious "Adjust prelaunch to patch JSR at ", *
}
jsr decrunch_no_reset_progress
ldx #$0C
ldy #$00
@ -37,9 +40,6 @@ start
sta $514A
lda #>load_level
sta $514B
!if * != $B9DF {
!serious "Adjust prelaunch to patch JSR at ", *
}
jsr $900
bit CLEARKBD
jsr PRODOS_MLI

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2585326
!be24 2585368
!le16 592

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2569733
!be24 2569775
!le16 1543

@ -5,4 +5,4 @@
;
!byte 0
!be24 2557550
!le16 507
!le16 514

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2560113
!le16 876
!be24 2560120
!le16 883

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2563097
!le16 829
!be24 2563111
!le16 843

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2566995
!le16 1283
!be24 2567023
!le16 1297

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2585918
!be24 2585960
!le16 306

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2586568
!be24 2586610
!le16 336

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2586904
!be24 2586946
!le16 303

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2573916
!be24 2573958
!le16 1640

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2586300
!be24 2586342
!le16 67

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2585314
!be24 2585356
!le16 12

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2584200
!be24 2584242
!le16 1062

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2581733
!be24 2581775
!le16 365

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2571276
!be24 2571318
!le16 2640

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2575914
!be24 2575956
!le16 1455

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2586224
!be24 2586266
!le16 76

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2585262
!be24 2585304
!le16 52

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2586367
!be24 2586409
!le16 201

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2582098
!be24 2582140
!le16 421

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2582519
!be24 2582561
!le16 192

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2582711
!be24 2582753
!le16 107

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2582818
!be24 2582860
!le16 292

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2583110
!be24 2583152
!le16 778

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2583888
!be24 2583930
!le16 285

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2584173
!be24 2584215
!le16 27

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2587207
!be24 2587249
!le16 2370

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2579126
!be24 2579168
!le16 863

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2579989
!be24 2580031
!le16 596

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2568278
!be24 2568320
!le16 1455

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2558057
!be24 2558064
!le16 2056

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2560989
!be24 2561003
!le16 2108

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2563926
!be24 2563954
!le16 3069

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2575556
!be24 2575598
!le16 358

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2577369
!be24 2577411
!le16 1757

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 2580585
!be24 2580627
!le16 1148

@ -8,11 +8,11 @@
+ENABLE_ACCEL
lda #$4C
sta $B8A9
sta $B8A6
jsr $8000
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $B8AC
jmp $B8A9
!if * > $1C0 {
!error "code is too large, ends at ", *

@ -8,11 +8,11 @@
+ENABLE_ACCEL
lda #$4C
sta $B057
sta $B054
jsr $8000
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $B05A
jmp $B057
!if * > $1C0 {
!error "code is too large, ends at ", *

@ -8,11 +8,11 @@
+ENABLE_ACCEL
lda #$4C
sta $B1A0
sta $B19D
jsr $8000
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $B1A3
jmp $B1A0
!if * > $1C0 {
!error "code is too large, ends at ", *

@ -8,11 +8,11 @@
+ENABLE_ACCEL
lda #$4C
sta $B931
sta $B915
jsr $8000
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $B934
jmp $B918
!if * > $1C0 {
!error "code is too large, ends at ", *

@ -7,13 +7,9 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda $AA2F
pha
lda #$60
sta $AA2F
lda #$4C
sta $AA2C
jsr $8000
pla
sta $AA2F
+DISABLE_ACCEL
+NEW_RESET_VECTOR $200
jmp $AA2F

@ -8,11 +8,13 @@
+ENABLE_ACCEL
lda #$4C
sta $879
sta $876
jsr $800
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $87C
ldx #$FD
txs
jmp $879
!if * > $1C0 {
!error "code is too large, ends at ", *

@ -8,11 +8,11 @@
+ENABLE_ACCEL
lda #$4C
sta $B290
sta $B26D
jsr $8000
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $B293
jmp $B270
!if * > $1C0 {
!error "code is too large, ends at ", *

@ -8,11 +8,11 @@
+ENABLE_ACCEL
lda #$4C
sta $B9DF
sta $B9BC
jsr $8000
+DISABLE_ACCEL
+RESET_VECTOR $100
jmp $B9E2
jmp $B9BF
!if * > $1C0 {
!error "code is too large, ends at ", *