Prev: 33646 Up: Map Next: 33695
33663: 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 33663 EX DE,HL Exchange the DE and HL registers.
AddSpacingFillTickerBuffer_Loop 33664 CP L Jump to DoneFillingTickerBuffer if A is equal to L.
33665 JR Z,DoneFillingTickerBuffer
33667 LD (HL),32 Write an ASCII space (32) to *HL.
33669 INC HL Increment HL by one.
33670 JR AddSpacingFillTickerBuffer_Loop Jump to AddSpacingFillTickerBuffer_Loop.
This entry point is used by the routine at Handler_Ticker.
DoneFillingTickerBuffer 33672 LD HL,30741 Write 1 to *Ticker_SpeedCounter.
33675 LD (HL),1
33677 LD (30738),A Write the final spacing position to:
33680 LD (30750),A
33683 LD HL,30751 Write 30751 to *TickerCharacter_Pointer.
33686 LD (30739),HL
33689 LD HL,61435 Set bit 0 ("Ticker On/ Off") of *GameState_2 to turn the ticker on.
33692 SET 0,(HL)
33694 RET Return.
Prev: 33646 Up: Map Next: 33695