Fixes for File Delete screen
This commit is contained in:
@@ -186,19 +186,21 @@ DMAAlphabetTilemap:
|
||||
PLA : STA $2100 ; put screen back however it was before
|
||||
;--------------------------------------------------------------------------------
|
||||
LDA.b #$00 : STA $4300 ; set DMA transfer direction A -> B, bus A auto increment, single-byte mode
|
||||
LDA.b #$22 : STA $4301 ; set bus B destination to CGRAM register
|
||||
|
||||
STZ $2121 ; write CGRAM destination address
|
||||
|
||||
LDA.b #$80 : STA $4301 ; set bus B destination to WRAM register
|
||||
|
||||
STZ $2181 ; set WRAM register source address
|
||||
LDA.b #$C5 : STA $2182
|
||||
LDA.b #$7E : STA $2183
|
||||
|
||||
LDA.b #GFX_HUD_Palette : STA $4302 ; set bus A source address to WRAM
|
||||
LDA.b #GFX_HUD_Palette>>8 : STA $4303 ; set bus A source address to WRAM
|
||||
LDA.b #GFX_HUD_Palette>>16 : STA $4304 ; set bus A source bank
|
||||
|
||||
LDA.b #$80 : STA $4305 : STZ $4306 ; set transfer size to 0x40
|
||||
|
||||
LDA $2100 : PHA : LDA.b #$80 : STA $2100 ; save screen state & turn screen off
|
||||
LDA #$01 : STA $420B ; begin DMA transfer
|
||||
PLA : STA $2100 ; put screen back however it was before
|
||||
|
||||
LDA.b #$40 : STA $4305 : STZ $4306 ; set transfer size to 0x40
|
||||
|
||||
LDA #$01 : STA $420B ; begin DMA transfer
|
||||
|
||||
INC $15 ; ensure CGRAM gets updated
|
||||
;--------------------------------------------------------------------------------
|
||||
PLA : STA $4306 ; restore DMA parameters
|
||||
PLA : STA $4305 ; restore DMA parameters
|
||||
|
||||
11
hooks.asm
11
hooks.asm
@@ -159,6 +159,17 @@ db $09 : SKIP 5 : db $09 : SKIP 1 : db $09 : SKIP 1 : db $09 : SKIP 1 : db $09 :
|
||||
db $09 : SKIP 1 : db $09 : SKIP 1 : db $09 : SKIP 1 : db $09 : SKIP 5 : db $05
|
||||
;--------------------------------------------------------------------------------
|
||||
|
||||
;================================================================================
|
||||
; Delete file Screen
|
||||
;--------------------------------------------------------------------------------
|
||||
; Remove code that tries to hide non-selected player files
|
||||
org $0CD435 ; <- 65435 - Bank0C.asm : 2772 (LDX.b #$64) [LDX.b #$50]
|
||||
LDX.b #$44
|
||||
LDA $D324, X
|
||||
org $0CD446 ; <- 65446 - Bank0C.asm : 2782 (LDX $C8 : CPX.b #$02 : BEQ BRANCH_11)
|
||||
db $80 ; BRA
|
||||
;--------------------------------------------------------------------------------
|
||||
|
||||
;================================================================================
|
||||
; Damage table Relocation from WRAM
|
||||
;--------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user