Cleanup scrolling text labels. Use macro for the wram locations. Move text.asm -> text/scrolling_text.asm

This commit is contained in:
Marcus Huderle 2017-07-08 18:34:44 -07:00
parent 7c97dcbc6c
commit 2f7383f03d
23 changed files with 142 additions and 147 deletions

View File

@ -206,9 +206,9 @@ GameScreenFunction_HandleBallLoss: ; 0xda36
ld [wDrawBottomMessageBox], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, ShootAgainText
call LoadTextHeader
call LoadScrollingText
ret
.asm_daa9

View File

@ -18,7 +18,7 @@ HandleBallLossDiglettBonus: ; 0xe056
ret nz
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, EndDiglettStageText
call LoadTextHeader
call LoadScrollingText
ret

View File

@ -44,7 +44,7 @@ HandleBallLossGengarBonus: ; 0xdf1a
ret nz
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, EndGengarStageText
call LoadTextHeader
call LoadScrollingText
ret

View File

@ -51,7 +51,7 @@ HandleBallLossMeowthBonus: ; 0xdfe2
ret nz
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, EndMeowthStageText
call LoadTextHeader
call LoadScrollingText
ret

View File

@ -44,7 +44,7 @@ HandleBallLossMewtwoBonus: ; 0xdf7e
ret nz
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, EndMewtwoStageText
call LoadTextHeader
call LoadScrollingText
ret

View File

@ -50,7 +50,7 @@ HandleBallLossSeelBonus: ; 0xe08b
ret nz
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, EndSeelStageText
call LoadTextHeader
call LoadScrollingText
ret

View File

@ -930,17 +930,17 @@ ShowAnimatedWildMon: ; 0x10678
Func_10696: ; 0x10696
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, LetsGetPokemonText
call LoadTextHeader
call LoadScrollingText
ret
Func_106a6: ; 0x106a6
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, PokemonRanAwayText
call LoadTextHeader
call LoadScrollingText
ret
Func_106b6: ; 0x106b6
@ -979,12 +979,12 @@ Func_106b6: ; 0x106b6
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
pop de
call LoadTextHeader
ld hl, wScrollingTextStruct2
call LoadScrollingText
ld hl, wScrollingText2
pop de
call LoadTextHeader
call LoadScrollingText
pop hl
ld de, wBottomMessageText + $20
ld b, $0 ; count the number of letters in mon's name in register b
@ -1003,16 +1003,16 @@ Func_106b6: ; 0x106b6
inc de
xor a
ld [de], a
ld a, [wd5db]
ld a, [wScrollingText2ScrollStepsRemaining]
add b
ld [wd5db], a
ld [wScrollingText2ScrollStepsRemaining], a
ld a, $14
sub b
srl a
ld b, a
ld a, [wd5d8]
ld a, [wScrollingText2StopOffset]
add b
ld [wd5d8], a
ld [wScrollingText2StopOffset], a
ret
Func_10732: ; 0x10732
@ -1178,12 +1178,12 @@ Func_10848: ; 0x10848
callba AddBigBCD6FromQueue
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct2
ld hl, wScrollingText2
ld de, OneBillionText
call LoadTextHeader
ld hl, wScrollingTextStruct1
call LoadScrollingText
ld hl, wScrollingText1
ld de, PokemonCaughtSpecialBonusText
call LoadTextHeader
call LoadScrollingText
call Func_3475
ret

View File

@ -72,8 +72,8 @@ Func_20c08: ; 0x20c08
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld de, YeahYouGotItText
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
ld a, [hGameBoyColorFlag]
and a
jr z, .asm_20c74
@ -257,9 +257,9 @@ Func_20da0: ; 0x20da0
callba StopTimer
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, EvolutionFailedText
call LoadTextHeader
call LoadScrollingText
ret
Func_20e34: ; 0x20e34
@ -494,8 +494,8 @@ Func_20f75: ; 0x20f75
ld e, a
ld a, [hl]
ld d, a
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
scf
ret
@ -527,14 +527,14 @@ Func_20fef: ; 0x20fef
callba AddBigBCD6FromQueue
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld a, [wCurrentEvolutionType]
cp EVO_EXPERIENCE
ld de, PokemonIsTiredText
jr z, .asm_21057
ld de, ItemNotFoundText
.asm_21057
call LoadTextHeader
call LoadScrollingText
scf
ret
@ -631,8 +631,8 @@ asm_210c7:
jr z, .asm_21115
ld de, TryNextPlaceText
.asm_21115
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
scf
ret

View File

@ -75,8 +75,8 @@ Func_205e0: ; 0x205e0
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld de, YeahYouGotItText
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
ld a, [hGameBoyColorFlag]
and a
jr z, .asm_2064f
@ -260,9 +260,9 @@ Func_2077b: ; 0x2077b
callba StopTimer
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, EvolutionFailedText
call LoadTextHeader
call LoadScrollingText
ret
Func_2080f: ; 0x2080f
@ -517,8 +517,8 @@ Func_20977: ; 0x20977
ld e, a
ld a, [hl]
ld d, a
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
scf
ret
@ -549,14 +549,14 @@ Func_209eb: ; 0x209eb
callba AddBigBCD6FromQueue
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld a, [wCurrentEvolutionType]
cp EVO_EXPERIENCE
ld de, PokemonIsTiredText
jr z, .asm_20a50
ld de, ItemNotFoundText
.asm_20a50
call LoadTextHeader
call LoadScrollingText
scf
ret
@ -633,8 +633,8 @@ asm_20a9f:
jr z, .asm_20aed
ld de, TryNextPlaceText
.asm_20aed
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
scf
ret

View File

@ -10,9 +10,9 @@ HandleExtraBall: ; 0x30188
jr nz, .asm_301a7
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, ExtraBallText
call LoadTextHeader
call LoadScrollingText
jr .asm_301c9
.asm_301a7
@ -22,14 +22,14 @@ HandleExtraBall: ; 0x30188
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct2
ld hl, wScrollingText2
ld de, DigitsText1to9
call Func_32cc
pop de
pop bc
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, ExtraBallSpecialBonusText
call LoadTextHeader
call LoadScrollingText
.asm_301c9
xor a
ld [wd4ca], a

View File

@ -1340,9 +1340,9 @@ ShowBonusMultiplierMessage_BlueField: ; 0x1d5bf
ld [wd613], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, BonusMultiplierText
call LoadTextHeader
call LoadScrollingText
ld hl, wBottomMessageText + $12
ld a, [wd614]
and $7f
@ -2081,9 +2081,9 @@ ResolveBlueStagePinballUpgradeTriggersCollision: ; 0x1e356
call PlaySoundEffect
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, FieldMultiplierText
call LoadTextHeader
call LoadScrollingText
ld a, [wBallType]
ld c, a
ld b, $0
@ -2106,14 +2106,14 @@ ResolveBlueStagePinballUpgradeTriggersCollision: ; 0x1e356
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct2
ld hl, wScrollingText2
ld de, DigitsText1to8
call Func_32cc
pop de
pop bc
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, FieldMultiplierSpecialBonusText
call LoadTextHeader
call LoadScrollingText
.asm_1e465
callba TransitionPinballUpgrade
jr asm_1e475
@ -2896,7 +2896,7 @@ Func_1e830: ; 0x1e830
Func_1e8c3: ; 0x1e8c3
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld a, [wd497]
ld de, GoToMeowthStageText
cp STAGE_MEOWTH_BONUS
@ -2906,7 +2906,7 @@ Func_1e8c3: ; 0x1e8c3
jr z, .loadText
ld de, GoToMewtwoStageText
.loadText
call LoadTextHeader
call LoadScrollingText
ld de, $0000
call PlaySong
rst AdvanceFrame

View File

@ -677,9 +677,9 @@ Func_1ab30: ; 0x1ab30
ld [wCompletedBonusStage], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, DiglettStageClearedText
call LoadTextHeader
call LoadScrollingText
lb de, $4b, $2a
call PlaySoundEffect
ld a, $1

View File

@ -1005,9 +1005,9 @@ Func_189af: ; 0x189af
ld [wCompletedBonusStage], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, GengarStageClearedText
call LoadTextHeader
call LoadScrollingText
lb de, $4b, $2a
call PlaySoundEffect
ret

View File

@ -202,9 +202,9 @@ ResolveMeowthBonusGameObjectCollisions: ; 0x2442a
ld [wCompletedBonusStage], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, MeowthStageClearedText
call LoadTextHeader
call LoadScrollingText
lb de, $4b, $2a
call PlaySoundEffect
.asm_24498

View File

@ -351,10 +351,10 @@ Func_19638: ; 0x19638
ld [wCompletedBonusStage], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
.asm_1966b
ld de, MewtwoStageClearedText
call LoadTextHeader
call LoadScrollingText
lb de, $4b, $2a
call PlaySoundEffect
ret

View File

@ -1141,8 +1141,8 @@ ResolveRedStagePinballUpgradeTriggersCollision: ; 0x1535d
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld de, FieldMultiplierText
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
ld a, [wBallType]
ld c, a
ld b, $0
@ -1165,14 +1165,14 @@ ResolveRedStagePinballUpgradeTriggersCollision: ; 0x1535d
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct2
ld hl, wScrollingText2
ld de, DigitsText1to8
call Func_32cc
pop de
pop bc
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, FieldMultiplierSpecialBonusText
call LoadTextHeader
call LoadScrollingText
.asm_15447
call TransitionPinballUpgrade
jr Func_15450
@ -3612,7 +3612,7 @@ Func_16352: ; 0x16352
Func_163f2: ; 0x163f2
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld a, [wd497]
ld de, GoToDiglettStageText
cp STAGE_DIGLETT_BONUS
@ -3622,7 +3622,7 @@ Func_163f2: ; 0x163f2
jr z, .asm_1640f
ld de, GoToMewtwoStageText
.asm_1640f
call LoadTextHeader
call LoadScrollingText
ld de, $0000
call PlaySong
rst AdvanceFrame
@ -5596,9 +5596,9 @@ ShowBonusMultiplierMessage_RedField: ; 0x16ef5
ld [wd613], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, BonusMultiplierText
call LoadTextHeader
call LoadScrollingText
ld hl, wBottomMessageText + $12
ld a, [wd614]
and $7f

View File

@ -15,9 +15,9 @@ ResolveSeelBonusGameObjectCollisions: ; 0x25c5a
ld [wCompletedBonusStage], a
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
ld de, SeelStageClearedText
call LoadTextHeader
call LoadScrollingText
ld a, $2
ld [wd794], a
lb de, $4b, $2a

View File

@ -369,8 +369,8 @@ SlotRewardUpgradeBall: ; 0xf040
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld de, FieldMultiplierText
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
; upgrade ball type
ld a, [wBallType]
ld c, a
@ -394,14 +394,14 @@ SlotRewardUpgradeBall: ; 0xf040
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct2
ld hl, wScrollingText2
ld de, DigitsText1to8
call Func_32cc
pop de
pop bc
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, FieldMultiplierSpecialBonusText
call LoadTextHeader
call LoadScrollingText
.asm_f0b0
callba Func_155bb
ret

View File

@ -5111,7 +5111,6 @@ UpdateAnimation: ; 0x28a9
pop de
ret
INCLUDE "text.asm"
INCLUDE "home/text.asm"
Func_3500:

View File

@ -1,3 +1,5 @@
INCLUDE "text/scrolling_text.asm"
Func_30db: ; 0x30db
ld a, $86
ld [hWY], a ;force text bar up
@ -18,9 +20,9 @@ FillBottomMessageBufferWithBlackTile: ; 0x30e8
dec b
jr nz, .loop
xor a
ld [wScrollingTextStruct1], a
ld [wScrollingTextStruct2], a
ld [wScrollingTextStruct3], a
ld [wScrollingText1Enabled], a
ld [wScrollingText2Enabled], a
ld [wScrollingText3Enabled], a
ld [wd5e4], a
ld [wd5e9], a
ld [wd5ee], a
@ -324,18 +326,18 @@ UnusedPlaceString: ; 0x3268 seems to place text based on different, confusing lo
inc e
jr UnusedPlaceString
LoadTextHeader: ; 0x32aa
LoadScrollingText: ; 0x32aa
; Loads scrolling text into the specified buffer.
; Scrolling text appears in a black bar at the bottom of the screen during pinball gameplay.
; Input: de = pointer to scrolling text
; hl = pointer to text header buffer
; Text Header Format:
; Input: de = pointer to scrolling text data
; hl = pointer to scrolling text header (See wScrollingText1)
; Scrolling text Header Format:
; Byte 1: Step delay (in frames)
; Byte 2: Starting wBottomMessageBuffer offset (wBottomMessageBuffer + $40 = left-most tile)
; Byte 3: Stopping wBottomMessageBuffer offset (stops scrolling in the middle of the screen)
; Byte 4: Number of steps to pause
; Byte 5: Text offset in wBottomMessageText
; Byte 6: Total number of steps in the entire scolling animation
; Byte 6: Total number of steps in the entire scrolling animation
; Remaining Bytes: Raw text to load
ld a, $1
ld [hli], a
@ -619,29 +621,29 @@ Func_33e3: ; 0x33e3
.asm_33ed
ld c, $0
ld a, [wScrollingTextStruct1]
ld a, [wScrollingText1Enabled]
and a
jr z, .asm_33fe ;if ?? is 0
push bc ;store b and 0
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
call HandleScrolling
pop bc
inc c
.asm_33fe
ld a, [wScrollingTextStruct2]
ld a, [wScrollingText2Enabled]
and a
jr z, .asm_340d
push bc
ld hl, wScrollingTextStruct2
ld hl, wScrollingText2
call HandleScrolling
pop bc
inc c
.asm_340d
ld a, [wScrollingTextStruct3]
ld a, [wScrollingText3Enabled]
and a
jr z, .asm_341c
push bc
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
call HandleScrolling
pop bc
inc c

View File

@ -118,9 +118,9 @@ Func_dc6d: ; 0xdc6d
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct3
ld hl, wScrollingText3
pop de
call LoadTextHeader
call LoadScrollingText
ret
Func_dc7c: ; 0xdc7c
@ -307,14 +307,14 @@ VideoData_10b2a: ; 0x10b2a
Func_10b3f: ; 0x10b3f
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld a, [wCurrentEvolutionType]
cp EVO_EXPERIENCE
ld de, StartTrainingText
jr z, .asm_10b55
ld de, FindItemsText
.asm_10b55
call LoadTextHeader
call LoadScrollingText
ret
InitEvolutionSelectionMenu: ; 0x10b59
@ -763,12 +763,12 @@ Func_10e0a: ; 0x10e0a
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
pop de
call LoadTextHeader
ld hl, wScrollingTextStruct2
call LoadScrollingText
ld hl, wScrollingText2
pop de
call LoadTextHeader
call LoadScrollingText
pop hl
ld de, wBottomMessageText + $20
ld b, $0
@ -787,16 +787,16 @@ Func_10e0a: ; 0x10e0a
inc de
xor a
ld [de], a
ld a, [wd5db]
ld a, [wScrollingText2ScrollStepsRemaining]
add b
ld [wd5db], a
ld [wScrollingText2ScrollStepsRemaining], a
ld a, $14
sub b
srl a
ld b, a
ld a, [wd5d8]
ld a, [wScrollingText2StopOffset]
add b
ld [wd5d8], a
ld [wScrollingText2StopOffset], a
ret
Func_10e8b: ; 0x10e8b
@ -808,14 +808,14 @@ Func_10e8b: ; 0x10e8b
push de
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct2
ld hl, wScrollingText2
ld de, Data_2b6b
call Func_32cc
pop de
pop bc
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, EvolutionSpecialBonusText
call LoadTextHeader
call LoadScrollingText
ret
StartEvolutionMode_RedField: ; 0x10ebb
@ -1534,11 +1534,11 @@ LoadScrollingMapNameText: ; 0x3118f
ld e, a
ld a, [hli]
ld d, a
ld hl, wScrollingTextStruct2
call LoadTextHeader
ld hl, wScrollingText2
call LoadScrollingText
pop de
ld hl, wScrollingTextStruct1
call LoadTextHeader
ld hl, wScrollingText1
call LoadScrollingText
ret
Func_311b4: ; 0x311b4
@ -1970,9 +1970,9 @@ Func_3151f: ; 0x3151f
callba StopTimer
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, MapMoveFailedText
call LoadTextHeader
call LoadScrollingText
ret
Func_31591: ; 0x31591
@ -2124,9 +2124,9 @@ Func_3168c: ; 0x3168c
callba StopTimer
call FillBottomMessageBufferWithBlackTile
call Func_30db
ld hl, wScrollingTextStruct1
ld hl, wScrollingText1
ld de, MapMoveFailedText
call LoadTextHeader
call LoadScrollingText
ret
Func_31708: ; 0x31708

View File

@ -1,4 +1,4 @@
; 6-byte header for scrolling text. See LoadTextHeader for documentation.
; 6-byte header for scrolling text in the bottom message box. See LoadScrollingText, and wScrollingText1 for documentation.
BallSavedText:
db $05, $54, $45, $14, $00, $33

View File

@ -734,29 +734,23 @@ wd5ca:: ; 0xd5ca set to 1 by a commonly called text function that is called at t
wd5cb:: ; 0xd5cb set to 0 if the above is 0 during Func_33e3
ds $1
wScrollingTextStruct1:: ; 0xd5cc Start of a scrolling message struct that contains 8 1-byte vars.
; Byte 1: Toggles if enabled. 0 is off, non-0 is on
; Byte 2: is how many frames until the next scroll
; Byte 3: holds how long, in frames, it should take for the scroll to move 1 tile
; Byte 4: is the current position to place the start of the text
; Byte 5: is where in the scroll the message should stop for an extended period
; Byte 6: is how many frames the extended stop from Byte 5 has left
; Byte 7: is a pointer to the source text's position in the buffer
; Byte 8: is decremented each scroll and scroll denied by the stop
; Scrolling text relies on byte allignment for the text buffer and display area
ds $8
scrolling_text: MACRO
\1Enabled:: ds 1 ; Toggles if enabled. 0 is off, non-0 is on
\1ScrollDelayCounter:: ds 1 ; Number of frames remaining until the next scroll step
\1ScrollDelay:: ds 1 ; Number of frames between each scroll step
\1MessageBoxOffset:: ds 1 ; Offset in wBottomMessageBuffer to place first character of text
\1StopOffset:: ds 1 ; Offset in wBottomMessageBuffer where the scrolling text will briefly stop
\1StopDuration:: ds 1 ; Number of frames the message will remained stopped, before resuming scroll
\1SourceTextOffset:: ds 1 ; Offset in wBottomMessageText for the text to be displayed
\1ScrollStepsRemaining:: ds 1 ; Number of scroll steps remaining. Isn't decremented during the stop.
ENDM
wScrollingTextStruct2:: ; 0xd5d4 Start of a scrolling struct2
ds $4
wd5d8:: ; 0xd5d8
ds $3
wd5db:: ; 0xd5db
ds $1
wScrollingTextStruct3:: ; 0xd5dc Start of a scrolling struct3
ds $8
wScrollingText1:: ; 0xd5cc
scrolling_text wScrollingText1
wScrollingText2:: ; 0xd5d4
scrolling_text wScrollingText2
wScrollingText3:: ; 0xd5dc
scrolling_text wScrollingText3
wd5e4:: ; 0xd5e4
ds $5