Prev: 836E Up: Map Next: 839F
837F: Add Spacing To Fill Ticker Buffer
Used by the routine at Messaging_GenerateTicker.
Input
A Final position for spacing
DE Starting address in Buffer_Ticker
AddSpacingFillTickerBuffer 837F EX DE,HL Exchange the DE and HL registers.
AddSpacingFillTickerBuffer_Loop 8380 CP L Jump to DoneFillingTickerBuffer if A is equal to L.
8381 JR Z,DoneFillingTickerBuffer
8383 LD (HL),$20 Write an ASCII space (20) to *HL.
8385 INC HL Increment HL by one.
8386 JR AddSpacingFillTickerBuffer_Loop Jump to AddSpacingFillTickerBuffer_Loop.
This entry point is used by the routine at Handler_Ticker.
DoneFillingTickerBuffer 8388 LD HL,$7815 Write 01 to *Ticker_SpeedCounter.
838B LD (HL),$01
838D LD ($7812),A Write the final spacing position to:
8390 LD ($781E),A
8393 LD HL,$781F Write 781F to *TickerCharacter_Pointer.
8396 LD ($7813),HL
8399 LD HL,$EFFB Set bit 0 ("Ticker On/ Off") of *GameState_2 to turn the ticker on.
839C SET 0,(HL)
839E RET Return.
Prev: 836E Up: Map Next: 839F