Routines |
Prev: 43689 | Up: Map | Next: 43902 |
Used by the routine at GameEntryPoint.
|
||||
Messaging_GameOver | 43794 | CALL BlankMiddleAttributeBuffer | Call BlankMiddleAttributeBuffer. | |
43797 | CALL BlankMiddleScreenBuffer | Call BlankMiddleScreenBuffer. | ||
Print "ACADEMY OF TRASHMEN DIPLOMA".
|
||||
43800 | LD HL,44814 | HL=Messaging_TrashmenDiploma. | ||
43803 | LD DE,18466 | DE=18466 (screen buffer location). | ||
43806 | CALL PrintString | Call PrintString. | ||
43809 | LD HL,18498 | HL=18498 (screen buffer location). | ||
43812 | LD B,27 | B=27. | ||
43814 | CALL Concealer | Call Concealer. | ||
Print "This is to certify that ".
|
||||
43817 | LD HL,44842 | HL=Messaging_Certify_1. | ||
43820 | LD DE,18528 | DE=18528 (screen buffer location). | ||
43823 | CALL PrintString | Call PrintString. | ||
Who is in play, is it 1UP or 2UP?
|
||||
43826 | LD HL,43914 | HL=Game_Flags. | ||
43829 | BIT 4,(HL) | Test bit 4 of *HL. | ||
Default to using the 1UP name.
|
||||
43831 | LD HL,44198 | HL=Name_1UP. | ||
43834 | JR Z,Messaging_GameOver_PrintName | Jump to Messaging_GameOver_PrintName if this is player one. | ||
Else, use the name for 2UP.
|
||||
43836 | LD HL,44231 | HL=Name_2UP. | ||
Messaging_GameOver_PrintName | 43839 | CALL PrintString | Call PrintString. | |
Print "has completed a course in TRASHMANSHIP , and may go forth to rid the world of trash.".
|
||||
43842 | LD DE,18560 | DE=18560 (screen buffer location). | ||
43845 | LD HL,44867 | HL=Messaging_Certify_2. | ||
43848 | CALL PrintString | Call PrintString. | ||
43851 | CALL PressAnyKey | Call PressAnyKey. | ||
43854 | CALL BlankMiddleScreenBuffer | Call BlankMiddleScreenBuffer. | ||
Print "Your score was ".
|
||||
43857 | LD HL,44958 | HL=Messaging_Certify_3. | ||
43860 | LD DE,18498 | DE=18498 (screen buffer location). | ||
43863 | CALL PrintString | Call PrintString. | ||
43866 | CALL Messaging_GameOver_Score | Call Messaging_GameOver_Score. | ||
Print " pts.".
|
||||
43869 | LD HL,44584 | HL=Messaging_Pts. | ||
43872 | CALL PrintString | Call PrintString. | ||
43875 | LD HL,43914 | HL=Game_Flags. | ||
43878 | BIT 0,(HL) | Return if the score is not on the score board. | ||
43880 | RET Z | |||
Print "Your success has given you a well earned nomination for the TRASHMAN OF THE YEAR.".
|
||||
43881 | LD HL,44974 | HL=Messaging_Certify_4. | ||
43884 | LD DE,18560 | DE=18560 (screen buffer location). | ||
43887 | CALL PrintString | Call PrintString. | ||
43890 | RET | Return. | ||
Print the active players score.
|
||||
Messaging_GameOver_Score | 43891 | LD HL,52118 | HL=ActivePlayer_Score. | |
Move to the last digit of the score (prep for printing).
|
||||
43894 | INC HL | Increment HL by two. | ||
43895 | INC HL | |||
43896 | LD B,3 | B=3 (the score is held by three bytes). | ||
43898 | CALL PrintNumbers | Call PrintNumbers. | ||
43901 | RET | Return. |
Prev: 43689 | Up: Map | Next: 43902 |