News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Status screen load

Started by Mettyk25jigsaw, December 13, 2020, 11:26:25 PM

Previous topic - Next topic

Mettyk25jigsaw

Hi Everyone.

I have been trying to locate the spot in my rom where the status screen gets loaded after pressing R on pause map, I am wanting to alter the speed the status screen takes to load to make it take about a second longer, maybe 2 seconds. This may seem crazy why I would want to do this, but there is a good reason. :grin:

Any help would be greatly appreciated.

Cheers.

Quote58

Depends what your goal is. If you just want it to take longer to fade, here's where that happens:
fading out:
;;; $9156: Pause index 2 - map screen to equipment screen - fading out ;;;
{
$82:9156 22 30 BB 82 JSL $82BB30[$82:BB30]  ; Display map elevator destinations
$82:915A 20 C8 B9    JSR $B9C8  [$82:B9C8]  ; Map screen - draw Samus position indicator
$82:915D 22 72 B6 82 JSL $82B672[$82:B672]  ; Draw map icons
$82:9161 20 6D A5    JSR $A56D  [$82:A56D]  ; Updates the flashing buttons when you change pause screens
$82:9164 A9 00 00    LDA #$0000             ;\
$82:9167 8D 63 07    STA $0763  [$7E:0763]  ;} Pause screen mode = map screen
$82:916A 22 24 89 80 JSL $808924[$80:8924]  ; Handle fading out
$82:916E E2 20       SEP #$20
$82:9170 A5 51       LDA $51    [$7E:0051]  ;\
$82:9172 C9 80       CMP #$80               ;} If not finished fading out: return
$82:9174 D0 0F       BNE $0F    [$9185]     ;/
$82:9176 22 4B 83 80 JSL $80834B[$80:834B]  ; Enable NMI
$82:917A C2 20       REP #$20
$82:917C 9C 23 07    STZ $0723  [$7E:0723]  ; Screen fade delay = 0
$82:917F 9C 25 07    STZ $0725  [$7E:0725]  ; Screen fade counter = 0
$82:9182 EE 27 07    INC $0727  [$7E:0727]  ; Pause index = 3 (map screen to equipment screen - load equipment screen)

$82:9185 60          RTS

screen faded, loading equipment screen:
;;; $91AB: Pause index 3 - map screen to equipment screen - load equipment screen ;;;
{
$82:91AB C2 30       REP #$30
$82:91AD 22 30 BB 82 JSL $82BB30[$82:BB30]  ; Display map elevator destinations
$82:91B1 20 47 AB    JSR $AB47  [$82:AB47]  ; Equipment screen - set up reserve mode and determine initial selection
$82:91B4 22 22 AC 82 JSL $82AC22[$82:AC22]  ; Equipment screen - transfer BG1 tilemap
$82:91B8 A9 01 00    LDA #$0001             ;\
$82:91BB 8D 63 07    STA $0763  [$7E:0763]  ;} Pause screen mode = equipment screen
$82:91BE 20 15 A6    JSR $A615  [$82:A615]  ; Set pause screen button label palettes
$82:91C1 9C 3F 07    STZ $073F  [$7E:073F]  ; $073F = 0
$82:91C4 AD 0C C1    LDA $C10C  [$82:C10C]  ;\
$82:91C7 8D 2B 07    STA $072B  [$7E:072B]  ;} $072B = Fh
$82:91CA A9 01 00    LDA #$0001             ;\
$82:91CD 8D 23 07    STA $0723  [$7E:0723]  ;} Screen fade delay = 1
$82:91D0 8D 25 07    STA $0725  [$7E:0725]  ; Screen fade counter = 1
$82:91D3 EE 27 07    INC $0727  [$7E:0727]  ; Pause index = 4 (map screen to equipment screen - fading in)
$82:91D6 60          RTS


However, I'm assuming you don't just want it to literally fade slower, so in that case you would want to change how it handles the transition itself. My guess is you want more time to load in data, in which case you would want to hijack the 'loading equip screen' routine and when you're done you can let it fade in like normal.