Prev: 34279 Up: Map Next: 34406
34304: Print Header
Used by the routines at GameInitialise and Handler_SubGame.
game-header
Prints "Score Trashman Cash".
Print_Header 34304 LD HL,35912 HL=Messaging_Header.
34307 LD DE,16385 DE=16385 (screen buffer location).
34310 CALL Print_String Call Print_String.
Prints the name of the current player.
34313 LD HL,(61426) HL=*Pointer_ActivePlayer.
34316 LD DE,16401 DE=16401 (screen buffer location).
34319 CALL Print_String Call Print_String.
Prints the players score.
34322 LD DE,4 HL+=0004.
34325 ADD HL,DE
34326 LD DE,16417 DE=16417 (screen buffer location).
34329 LD BC,515 BC=0515.
34332 CALL PrintNumbers Call PrintNumbers.
Prints "in".
34335 LD HL,35942 HL=Messaging_In.
34338 LD DE,16425 DE=16425 (screen buffer location).
34341 CALL Print_String Call Print_String.
Prepare to fetch and print the location name.
34344 LD IX,(61426) IX=Pointer_ActivePlayer.
34348 LD L,(IX+8) L=*IX+8.
34351 LD H,(IX+9) H=*IX+9.
34354 INC HL Increment HL by two.
34355 INC HL
34356 LD E,(HL) E=*HL.
34357 INC HL Increment HL by one.
34358 LD D,(HL) D=*HL.
34359 LD (30725),DE Write DE to *CurrentLocationCoordinates.
Point HL to the location name, and print it.
34363 LD DE,14 HL+=0014.
34366 ADD HL,DE
34367 LD DE,16427 DE=16427 (screen buffer location).
34370 CALL Print_String Call Print_String.
34373 LD A,58 A=58.
34375 SUB E A-=E.
34376 JR Z,Print_CashRemaining Jump to Print_CashRemaining if HL is zero.
34378 EX DE,HL Exchange the DE and HL registers.
34379 LD C,A C=A.
34380 CALL ClearScreenArea Call ClearScreenArea.
Prints "£".
Print_CashRemaining 34383 LD DE,16442 DE=16442 (screen buffer location).
34386 LD HL,35878 HL=Messaging_£.
34389 CALL Print_String Call Print_String.
Prints the amount of cash remaining for the active player.
34392 LD HL,(61426) HL=*Pointer_ActivePlayer.
34395 LD BC,14 HL+=0014.
34398 ADD HL,BC
34399 LD BC,514 BC=0514.
34402 CALL PrintNumbers Call PrintNumbers.
34405 RET Return.
Prev: 34279 Up: Map Next: 34406