![]() |
Routines |
| Prev: 43020 | Up: Map | Next: 43097 |
|
Used by the routines at Controller_NameSelect and Handler_NameSelect_Up.
|
||||
|
Who is in play, is it 1UP or 2UP?
|
||||
| 43066 | BIT 4,(HL) | Test bit 4 of *HL. | ||
|
Default to using the 1UP name.
|
||||
| 43068 | LD HL,44198 | HL=Name_1UP. | ||
| 43071 | JR Z,43076 | Jump to 43076 if this is player one. | ||
|
Else, use the name for 2UP.
|
||||
| 43073 | LD HL,44231 | HL=Name_2UP. | ||
| 43076 | LD DE,18647 | DE=18647 (screen buffer location). | ||
| 43079 | CALL PrintString | Call PrintString. | ||
| 43082 | LD A,(43914) | A=*Game_Flags. | ||
| 43085 | AND %00001111 | Keep only bits 0-3. | ||
| 43087 | LD HL,20447 | HL=20447 (screen buffer location). | ||
| 43090 | SUB L | A-=L. | ||
| 43091 | NEG | NEG. | ||
| 43093 | LD L,A | L=A. | ||
| 43094 | LD (HL),255 | Write 255 to *HL. | ||
| 43096 | RET | Return. | ||
| Prev: 43020 | Up: Map | Next: 43097 |