Prev: 43163 Up: Map Next: 43332
43220: Handler: News Flash
Used by the routine at Handler_Fired.
Handler_NewsFlash 43220 CALL BlankMiddleScreenBuffer Call BlankMiddleScreenBuffer.
43223 CALL PrepareAttributeBuffer Call PrepareAttributeBuffer.
Print "NEWS FLASH".
43226 LD HL,44320 HL=Messaging_NewsFlash_1.
43229 LD DE,18475 DE=18475 (screen buffer location).
43232 CALL PrintString Call PrintString.
43235 LD HL,18507 HL=18507 (screen buffer location).
43238 LD B,10 B=10.
43240 CALL Concealer Call Concealer.
Print "Trashman killed in".
43243 LD HL,44331 HL=Messaging_NewsFlash_2.
43246 LD DE,18528 DE=18528 (screen buffer location).
43249 CALL PrintString Call PrintString.
Prints the current road name.
43252 LD HL,49792 HL=Messaging_RoadName.
43255 CALL PrintString Call PrintString.
Print "Nominee for TRASHMAN of the YEAR" if the score is on the scoreboard.
43258 LD DE,18560 DE=18560 (screen buffer location).
43261 LD HL,44351 HL=Messaging_NewsFlash_3.
43264 LD A,(43914) A=*Game_Flags.
43267 BIT 0,A Call PrintString if the score is on the scoreboard.
43269 CALL NZ,PrintString
Print "Fred Scrunge, (".
43272 LD HL,44384 HL=Messaging_NewsFlash_4.
43275 CALL PrintString Call PrintString.
Default to using the 1UP name.
43278 LD HL,44198 HL=Name_1UP.
Who is in play, is it 1UP or 2UP?
43281 LD A,(43914) A=*Game_Flags.
43284 BIT 4,A Jump to Handler_NewsFlash_Write if this is player one.
43286 JR Z,Handler_NewsFlash_Write
Else, use the name for 2UP.
43288 LD HL,44231 HL=Name_2UP.
Handler_NewsFlash_Write 43291 CALL PrintString Call PrintString.
Print "), leaves".
43294 LD HL,44400 HL=Messaging_NewsFlash_5.
43297 DEC DE Decrease DE by one.
43298 CALL PrintString Call PrintString.
Print "wife, 3 kids, and pts.".
43301 LD HL,44410 HL=Messaging_NewsFlash_6.
43304 CALL PrintString Call PrintString.
Move DE to the correct screen position to print the points.
43307 EX DE,HL Exchange the DE register with the shadow HL register.
43308 LD DE,65525 DE=65525.
43311 ADD HL,DE HL+=DE.
43312 EX DE,HL Exchange the DE register with the shadow HL register.
Print the players points.
43313 CALL Print_Score Call Print_Score.
43316 CALL PressAnyKey Call PressAnyKey.
43319 CALL BlankMiddleAttributeBuffer Call BlankMiddleAttributeBuffer.
43322 LD A,48 A=48 (INK: BLACK, PAPER: YELLOW ).
43324 CALL PrepareAttributeBuffer_0 Call PrepareAttributeBuffer_0.
43327 LD A,6 Set border colour to YELLOW.
43329 OUT (254),A
43331 RET Return.
Prev: 43163 Up: Map Next: 43332