Routines |
Prev: 44839 | Up: Map | Next: 45018 |
Used by the routines at Demo_Mode and Start_1UP_Game.
|
||||
44854 | LD A,(43528) | Jump to 44925 if P1_Points_Awarded is zero. | ||
44857 | CP 0 | |||
44859 | JP Z,44925 | |||
44862 | LD HL,45067 | HL=45067 | ||
44865 | LD A,(43583) | BC=43583. | ||
44868 | LD C,A | |||
44869 | LD B,0 | |||
44871 | ADD HL,BC | |||
44872 | LD B,(HL) | |||
44873 | LD A,(43528) | |||
44876 | CP 1 | |||
44878 | JR NZ,44882 | |||
44880 | SRL B | |||
This entry point is used by the routine at Start_1UP_Game.
|
||||
44882 | LD A,B | fff | ||
44883 | LD HL,43522 | HL=43522 | ||
44886 | ADD A,(HL) | |||
44887 | LD (HL),A | |||
44888 | LD DE,45101 | $B02D. | ||
44891 | CALL 44994 | Call 44994. | ||
44894 | XOR A | Write 0 to; | ||
44895 | LD (43528),A | |||
44898 | LD A,(39980) | Return if Num_Players is zero. | ||
44901 | CP 0 | |||
44903 | RET Z | |||
Player 1 display score.
|
||||
44904 | LD HL,45103 | Point to Score_P1. | ||
44907 | LD B,3 | Set a counter of 3. | ||
44909 | CALL Populate_Score_Buffer | Call Populate_Score_Buffer. | ||
44912 | CALL Write_00 | Call Write_00. | ||
44915 | LD DE,45092 | Point to Score_Buffer and call Print_String. | ||
44918 | LD HL,256 | |||
44921 | CALL Print_String | |||
44924 | RET | Return. | ||
44925 | LD A,(43592) | |||
44928 | CP 0 | |||
44930 | RET Z | |||
44931 | LD HL,45067 | |||
44934 | LD A,(43583) | |||
44937 | LD C,A | |||
44938 | LD B,0 | |||
44940 | ADD HL,BC | |||
44941 | LD B,(HL) | |||
44942 | LD A,(43592) | |||
44945 | CP 1 | |||
44947 | JR NZ,44951 | |||
44949 | SRL B | |||
This entry point is used by the routine at Start_1UP_Game.
|
||||
44951 | LD A,B | |||
44952 | LD HL,43586 | |||
44955 | ADD A,(HL) | |||
44956 | LD (HL),A | |||
44957 | LD DE,45104 | |||
44960 | CALL 44994 | |||
44963 | XOR A | |||
44964 | LD (43592),A | |||
44967 | LD A,(39980) | |||
44970 | CP 2 | |||
44972 | RET NZ | |||
Player 2 display score.
|
||||
44973 | LD HL,45106 | Point to Score_P2. | ||
44976 | LD B,3 | Set a counter of 3. | ||
44978 | CALL Populate_Score_Buffer | Call Populate_Score_Buffer. | ||
44981 | CALL Write_00 | Call Write_00. | ||
44984 | LD DE,45092 | Point to Score_Buffer and call Print_String. | ||
44987 | LD HL,5632 | |||
44990 | CALL Print_String | |||
44993 | RET | Return. | ||
Calculate score.
|
||||
44994 | LD A,B | |||
44995 | CP 10 | |||
44997 | JR NZ,45001 | |||
44999 | LD B,16 | |||
45001 | LD A,(DE) | |||
45002 | ADD A,B | |||
45003 | DAA | |||
45004 | LD (DE),A | |||
45005 | INC DE | |||
45006 | LD A,(DE) | |||
45007 | ADC A,0 | |||
45009 | DAA | |||
45010 | LD (DE),A | |||
45011 | INC DE | |||
45012 | LD A,(DE) | |||
45013 | ADC A,0 | |||
45015 | DAA | |||
45016 | LD (DE),A | |||
45017 | RET | Return. |
Prev: 44839 | Up: Map | Next: 45018 |