Prev: 44037 Up: Map Next: 44735
44094: Routine at AC3E
Used by the routine at Main_Game.
fff
Start_1UP_Game 44094 XOR A Write 0 to;
44095 LD (43648),A
44098 LD (45151),A
44101 LD (43526),A
44104 LD (43528),A
44107 LD (43592),A
44110 INC A Write 1 to;
44111 LD (44853),A
44114 LD (43590),A
44117 INC A Write 2 to;
44118 LD (43580),A
44121 LD (44852),A
44124 CALL Reset_Score Call Reset_Score.
Start_1UP_Game_0 44127 LD A,(44853) If 44853 is zero, jump to Start_1UP_Game_1.
44130 AND A
44131 JR Z,Start_1UP_Game_1
44133 DEC A Decrease A by one.
44134 LD (44853),A Write A to 44853.
44137 CALL Intro_Music Call Intro_Music.
44140 LD A,(44852) A=44852.
44143 CALL 37376 Call 37376.
44146 LD B,0 B=0.
44148 CALL 44882 Call 44882.
44151 CALL Game_Over_13 Call Game_Over_13.
44154 LD HL,45109 Point to Hi_Score and call Print_HighScore.
44157 CALL Print_HighScore
44160 LD A,(45151)
44163 AND 31
44165 LD HL,44851
44168 LD (HL),A
44169 LD B,1
44171 CALL Populate_Score_Buffer
44174 CALL Zero_To_Space
44177 LD HL,34 Point to Score_Buffer and call Print_String.
44180 LD DE,45092
44183 CALL Print_String
44186 CALL Show_Rank Call Show_Rank.
Start_1UP_Game_1 44189 CALL New_Round
44192 CALL Init_Time
44195 CALL Start_1UP_Game_8
44198 AND A
44199 JP M,Start_1UP_Game_2
44202 JR Z,Start_1UP_Game_3
44204 LD HL,43580
44207 DEC (HL)
44208 JR NZ,Start_1UP_Game_0
44210 LD (HL),2
44212 CALL 44839
44215 LD A,1
44217 LD (44853),A
44220 LD HL,45151
44223 LD A,(HL)
44224 CP 16
44226 JR Z,Start_1UP_Game_4
44228 ADD A,1
44230 DAA
44231 LD (HL),A
44232 LD HL,43648
44235 INC (HL)
44236 JP Start_1UP_Game_0
Start_1UP_Game_2 44239 CP 129
44241 JR NZ,Start_1UP_Game_3
44243 CALL Start_1UP_Game_5
44246 JP Start_1UP_Game_0
Start_1UP_Game_3 44249 XOR A
44250 RET
Start_1UP_Game_4 44251 CALL Random_Number
44254 AND 3
44256 ADD A,7
44258 LD (43648),A
44261 JP Start_1UP_Game_0
Start_1UP_Game_5 44264 LD A,25 Write 25 to;
44266 LD (43532),A
44269 LD (43596),A
Start_1UP_Game_6 44272 XOR A Write 0 to;
44273 LD (43533),A
44276 LD (43531),A
44279 LD (43595),A
44282 LD (43542),A
44285 LD (43606),A
44288 LD (43533),A
44291 LD A,122 Write 122 to;
44293 LD (43544),A
44296 LD (43608),A
Start_1UP_Game_7 44299 CALL 38356 Call 38356.
44302 CALL 48915 Call 48915.
44305 LD A,(43533)
44308 AND A
44309 JR Z,Start_1UP_Game_7
44311 RET
Start_1UP_Game_8 44312 CALL Start_1UP_Game_24
44315 AND A
44316 RET M
44317 CALL 44801
44320 JR Z,Start_1UP_Game_10
44322 CALL Yin_Yang_1UP
44325 CALL 44854
44328 LD A,(43521)
44331 CP 4 Check if player 1 has 4 points.
This entry point is used by the routine at 45819.
Start_1UP_Game_9 44333 JR NC,Start_1UP_Game_12
44335 LD A,(43585)
44338 CP 4 Check if player 2 has 4 points.
44340 JP NC,Start_1UP_Game_16
Start_1UP_Game_10 44343 XOR A
44344 LD (43528),A
44347 LD (43592),A
44350 LD A,(39979)
44353 AND A
44354 JR Z,Start_1UP_Game_8
44356 LD A,(43521)
44359 LD HL,43585
44362 CP (HL)
44363 JR C,Start_1UP_Game_16
44365 JR Z,Start_1UP_Game_11
44367 JR Start_1UP_Game_12
Start_1UP_Game_11 44369 LD A,(43522)
44372 LD HL,43586
44375 CP (HL)
44376 JR C,Start_1UP_Game_15
44378 JR Z,Start_1UP_Game_17
44380 CALL Start_1UP_Game_29
Start_1UP_Game_12 44383 CALL Start_1UP_Game_30
44386 LD A,(40101)
44389 AND A
44390 JR Z,Start_1UP_Game_14
44392 LD BC,61440
44395 CALL 44829
Start_1UP_Game_13 44398 LD B,1
44400 CALL 44882
44403 CALL Time_Tick
44406 CALL Print_Time
44409 LD BC,61440
44412 CALL 44829
44415 LD A,(40101)
44418 AND A
44419 JR NZ,Start_1UP_Game_13
44421 CALL Print_Time
44424 CALL 44826
Start_1UP_Game_14 44427 CALL Init_Time
44430 LD A,1
44432 RET
Start_1UP_Game_15 44433 CALL Start_1UP_Game_32
Start_1UP_Game_16 44436 CALL Start_1UP_Game_33
44439 XOR A
44440 RET
Start_1UP_Game_17 44441 LD A,129
44443 RET
This entry point is used by the routine at Main_Game.
Start_2UP_Game 44444 XOR A Write 0 to;
44445 LD (45151),A
44448 LD (43526),A
44451 LD (43590),A
44454 LD (43528),A
44457 LD (43592),A
44460 LD A,2 Write 2 to;
44462 LD (44852),A
44465 CALL Intro_Music
44468 CALL New_Round
44471 CALL Reset_Score
Start_1UP_Game_18 44474 LD A,(44852)
44477 CALL 37376
44480 CALL Game_Over_13
44483 LD B,0
44485 CALL 44882
44488 LD B,0
44490 CALL 44951
44493 LD HL,45112
44496 CALL Print_HighScore
44499 CALL Game_Over_13
44502 CALL Init_Time
44505 XOR A
44506 LD (39979),A
44509 CALL Start_1UP_Game_23
44512 AND A
44513 RET M
44514 CALL 44839
44517 CALL Intro_Music
44520 LD HL,45151
44523 INC (HL)
44524 LD A,(HL)
44525 CP 4
44527 JR Z,Start_1UP_Game_19
44529 JR Start_1UP_Game_18
Start_1UP_Game_19 44531 CALL Check_HighScore
44534 LD A,(42678)
44537 AND A
44538 JR Z,Start_1UP_Game_20
44540 DEC A
44541 JR NZ,Start_1UP_Game_21
44543 CALL Start_1UP_Game_29
44546 CALL Start_1UP_Game_30
44549 JR Start_1UP_Game_22
Start_1UP_Game_20 44551 CALL Start_1UP_Game_5
44554 JR Start_1UP_Game_22
Start_1UP_Game_21 44556 CALL Start_1UP_Game_32
44559 CALL Start_1UP_Game_33
Start_1UP_Game_22 44562 XOR A
44563 RET
Start_1UP_Game_23 44564 CALL Start_1UP_Game_24
44567 AND A
44568 RET M
44569 CALL New_Round
44572 CALL 44854
44575 LD A,(39979)
44578 AND A
44579 JR Z,Start_1UP_Game_23
44581 RET
This entry point is used by the routine at Demo_Mode.
Start_1UP_Game_24 44582 CALL 40104
Start_1UP_Game_25 44585 CALL Game_Over
44588 AND A
44589 RET M
44590 LD A,(43588)
44593 CP 17
44595 JR Z,Start_1UP_Game_26
44597 LD A,(43524)
44600 CP 17
44602 JR Z,Start_1UP_Game_27
44604 LD HL,43277
44607 ADD A,L
44608 LD L,A
44609 LD A,(HL)
44610 AND A
44611 JR NZ,Start_1UP_Game_26
44613 LD A,(43588)
44616 LD HL,43277
44619 ADD A,L
44620 LD L,A
44621 LD A,(HL)
44622 AND A
44623 JR NZ,Start_1UP_Game_27
Start_1UP_Game_26 44625 XOR A Write 0 to;
44626 LD (50215),A
44629 JR Start_1UP_Game_28 Jump to Start_1UP_Game_28.
Start_1UP_Game_27 44631 LD A,1 Write 1 to;
44633 LD (50215),A
Start_1UP_Game_28 44636 LD A,(39976) Return if 39976 is not zero.
44639 AND A
44640 RET NZ
44641 LD A,(39979) Jump to Start_1UP_Game_25 if 39979 is not zero.
44644 AND A
44645 JR Z,Start_1UP_Game_25
44647 LD A,28 Write 28 to;
44649 LD (43532),A
44652 LD (43596),A
44655 CALL Start_1UP_Game_6 Call Start_1UP_Game_6.
44658 CALL 44826 Call 44826.
44661 CALL 44826 Call 44826.
Start_1UP_Game_29 44664 RET Return.
44665 RET
This entry point is used by the routine at Demo_Mode.
Start_1UP_Game_30 44666 LD A,25
44668 LD (43532),A
44671 LD A,122
44673 LD (43544),A
44676 XOR A
44677 LD (43531),A
44680 LD (43542),A
44683 LD (50215),A
Start_1UP_Game_31 44686 CALL 38356
44689 CALL 48915
44692 LD A,(43533)
44695 AND A
44696 JR Z,Start_1UP_Game_31
44698 RET
Start_1UP_Game_32 44699 RET
44700 RET
This entry point is used by the routine at Demo_Mode.
Start_1UP_Game_33 44701 LD A,25
44703 LD (43596),A
44706 LD A,122
44708 LD (43608),A
44711 XOR A
44712 LD (43595),A
44715 LD (43606),A
44718 INC A
44719 LD (50215),A
Start_1UP_Game_34 44722 CALL 38356
44725 CALL 48915
44728 LD A,(43597)
44731 AND A
44732 JR Z,Start_1UP_Game_34
44734 RET
Prev: 44037 Up: Map Next: 44735