Prev: FD86 Up: Map Next: FDC4
FD9E: Print Ticker News Copy
Used by the routine at Handler_TickerNews.
Print_TickerNewsCopy FD9E CALL RandomNumber Get a random number between 0-7.
FDA1 AND %00000111
Multiply the random number by two, as the messages are address pointers in a table (so two bytes in length each).
FDA3 ADD A,A A*=02.
FDA4 LD H,$00 Create an offset in HL.
FDA6 LD L,A
FDA7 LD DE,$FECF HL+=Table_TickerNews.
FDAA ADD HL,DE
FDAB LD A,(HL) Grab the ticker news messaging address.
FDAC INC HL
FDAD LD H,(HL)
FDAE LD L,A
Print the three lines of the ticker news data to the screen.
FDAF LD BC,$1207 BC=1207 (screen co-ordinates).
FDB2 CALL PrintString Call PrintString.
FDB5 LD BC,$1407 BC=1407 (screen co-ordinates).
FDB8 INC HL Move onto the start of the next message.
FDB9 CALL PrintString Call PrintString.
FDBC LD BC,$1607 BC=1607 (screen co-ordinates).
FDBF INC HL Move onto the start of the next message.
FDC0 CALL PrintString Call PrintString.
FDC3 RET Return.
Prev: FD86 Up: Map Next: FDC4