4sports/src/prelaunch/ss.baseball.a
Peter Ferrie e12fef6d0e fix Street Sports Bsaeball flying heads
this isn't One-on-One, after all.
2022-12-21 11:52:07 -08:00

54 lines
1.0 KiB
Plaintext
Executable File

;license:MIT
;(c) 2020 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SS.BASEBALL",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $9EB
jsr $800 ; decompress
inc $3F4 ; reboot
lda #$4C
sta $B7A6
lda #<callback1
sta $B7A7
lda #>callback1
sta $B7A8
jmp $B700
callback1
ldx #$FF
txs
lda $675A
cmp #$20
bne +
lda #<callback2
sta $675B
lda #>callback2
sta $675C
+ jmp $6000
callback2
; work around IIc+ firmware bug:
; if LC is writable but not banked in
; then SmartPort always banks in bank 2
; regardless of which bank was active
lda #$8B
sta $B528
sta $B52B
sta $B54A
sta $B54D
+DISABLE_ACCEL
jmp $B581
!if * > $1C0 {
!error "code is too large, ends at ", *
}