Prev: 42695 Up: Map Next: 42816
42709: Get Players Name
Used by the routine at GameEntryPoint.
Player_Name 42709 LD HL,44044 HL=Messaging_SituationVacant.
42712 LD DE,18472 DE=18472 (screen buffer location).
42715 CALL PrintString Call PrintString.
42718 LD HL,18504 HL=18504 (screen buffer location).
42721 LD B,16 B=16.
42723 CALL Concealer Call Concealer.
42726 LD HL,44175 HL=Messaging_EnterName1UP.
42729 LD DE,18624 DE=18624 (screen buffer location).
42732 CALL PrintString Call PrintString.
42735 LD A,255 Write 255 to 20439.
42737 LD (20439),A
42740 LD HL,43914 HL=Game_Flags.
42743 RES 4,(HL) Reset bit 4 of *HL.
42745 LD HL,44198 HL=Name_1UP.
42748 CALL Controller_NameSelect Call Controller_NameSelect.
42751 CALL PressAnyKey_0 Call PressAnyKey_0.
42754 LD HL,44241 HL=Messaging_AnyMoreApplicants.
42757 LD DE,18624 DE=18624 (screen buffer location).
42760 CALL PrintString Call PrintString.
42763 LD A,(43914) A=*Game_Flags.
42766 CALL Handler_Yes_No Call Handler_Yes_No.
42769 CALL Controller_Yes_No Call Controller_Yes_No.
42772 CALL PressAnyKey_0 Call PressAnyKey_0.
42775 LD HL,43914 HL=Game_Flags.
42778 SET 6,(HL) Set bit 6 of *HL.
42780 BIT 5,(HL) Return if bit 5 of *HL is not set.
42782 RET Z
42783 SET 4,(HL) Set bit 4 of *HL.
42785 LD HL,44208 HL=Messaging_EnterName2UP.
42788 LD DE,18624 DE=18624 (screen buffer location).
42791 CALL PrintString Call PrintString.
42794 LD A,255 Write 255 to 20439.
42796 LD (20439),A
42799 LD HL,44231 HL=Name_2UP.
42802 CALL Controller_NameSelect Call Controller_NameSelect.
42805 CALL PressAnyKey_0 Call PressAnyKey_0.
42808 LD HL,43914 HL=Game_Flags.
42811 RES 4,(HL) Reset bit 4 of *HL.
42813 SET 7,(HL) Set bit 7 of *HL.
42815 RET Return.
Prev: 42695 Up: Map Next: 42816