![]() |
Routines |
Prev: 34005 | Up: Map | Next: 34120 |
Used by the routines at Select1Or2PlayerGame and Handler_SubGame.
|
||||
Select_Yes/No | 34073 | CALL PauseCheck | Call PauseCheck. | |
Set up to print "No".
|
||||
Select_No | 34076 | LD HL,35856 | HL=Messaging_No. | |
34079 | CALL Select_GetInput | Call Select_GetInput. | ||
34082 | JR Z,Select_Yes | Jump to Select_Yes if "Yes" was selected. | ||
34084 | AND A | Set flags. | ||
34085 | RET | Return. | ||
Set up to print "Yes".
|
||||
Select_Yes | 34086 | LD HL,35875 | HL=Messaging_Yes. | |
34089 | CALL Select_GetInput | Call Select_GetInput. | ||
34092 | JR Z,Select_No | Jump to Select_No if "No" was selected". | ||
34094 | RET | Return. | ||
Prints the current choice, and handles the player input.
|
||||
Select_GetInput | 34095 | LD DE,20635 | DE=20635 (screen buffer location). | |
34098 | CALL Print_String | Call Print_String. | ||
Keep looping round until the player either chooses, or changes their choice.
|
||||
Select_Yes/No_Loop | 34101 | LD B,10 | Call 32853 with a count of 10. | |
34103 | CALL 32853 | |||
34106 | CALL Handler_Controls | Call Handler_Controls. | ||
34109 | LD A,E | A=the control byte. | ||
34110 | AND %00101000 | Keep only bits 3 ("down") and 5 ("fire"). | ||
34112 | CP 8 | Return if "down" was pressed. | ||
34114 | RET Z | |||
34115 | CP 40 | Jump to Select_Yes/No_Loop if there was no input from the player. | ||
34117 | JR Z,Select_Yes/No_Loop | |||
34119 | RET | Else, "fire" was pressed - just return. |
Prev: 34005 | Up: Map | Next: 34120 |