Prev: 41983 Up: Map Next: 42567
41986: Routine at A402
Used by the routine at 40102.
41986 LD A,(42516)
41989 LD B,A
41990 LD HL,46038
41993 ADD A,L
41994 LD L,A
41995 LD A,(HL)
41996 LD (42511),A
41999 LD A,2
42001 LD (42518),A
42004 LD A,B
42005 LD HL,46060
42008 ADD A,L
42009 LD L,A
42010 LD A,(HL)
42011 LD (42514),A
42014 LD A,B
42015 LD HL,46118
42018 ADD A,L
42019 LD L,A
This entry point is used by the routine at 45819.
42020 LD A,(HL)
42021 LD (42517),A
42024 LD A,128
42026 LD (42524),A
42029 LD A,1
42031 LD (42481),A
42034 LD A,B
42035 LD HL,46081
42038 ADD A,L
42039 LD L,A
42040 LD A,(HL)
42041 LD (42519),A
42044 LD A,128
42046 LD (42513),A
42049 LD A,0
42051 LD (42510),A
42054 LD (42520),A
42057 LD A,B
42058 LD HL,46130
42061 ADD A,L
42062 LD L,A
42063 LD A,(HL)
42064 LD (42566),A
42067 LD A,B
42068 LD HL,46093
42071 ADD A,L
42072 LD L,A
42073 LD A,(HL)
42074 LD (42521),A
42077 LD A,B
42078 LD HL,46106
42081 ADD A,L
42082 LD L,A
42083 LD A,(HL)
42084 LD (42522),A
42087 LD A,1
42089 LD (42512),A
42092 LD A,128
42094 LD (42523),A
42097 LD A,B
42098 LD HL,46142
42101 ADD A,L
42102 LD L,A
42103 LD A,(HL)
42104 LD (42507),A
42107 RET
This entry point is used by the routine at 40658.
42108 LD B,A
42109 LD A,(42543)
42112 CP 10
42114 JR Z,42130
42116 CP 16
42118 JR Z,42130
42120 CP 4
42122 JR Z,42130
42124 CP 7
42126 JR Z,42130
42128 LD A,B
42129 RET
42130 LD A,B
42131 LD HL,46153
42134 ADD A,L
42135 LD L,A
42136 LD A,(HL)
42137 RET
42138 LD A,(42516)
42141 CP 7
42143 JR C,42174
42145 LD A,(42557)
42148 CP 25
42150 JR Z,42161
42152 LD A,4
42154 LD (42486),A
42157 LD (42481),A
42160 RET
42161 LD A,10
42163 LD (42486),A
42166 LD (42481),A
42169 XOR A
42170 LD (42520),A
42173 RET
42174 LD A,(42543)
42177 CP 1
42179 JR NZ,42152
42181 JP 42161
42184 LD A,14
42186 LD (42486),A
42189 LD (42481),A
42192 XOR A
42193 LD (42520),A
42196 RET
42197 LD A,9
42199 LD (42481),A
42202 LD (42486),A
42205 XOR A
42206 LD (42520),A
42209 RET
42210 LD A,(42490)
42213 AND A
42214 JR Z,42229
42216 LD A,7
42218 LD (42481),A
42221 LD (42486),A
42224 XOR A
42225 LD (42520),A
42228 RET
42229 LD A,4
42231 LD (42486),A
42234 LD (42481),A
42237 RET
42238 CALL Random_Number
42241 CP 128
42243 JR C,42252
42245 LD A,5
42247 LD (42520),A
42250 JR 42210
42252 CALL Random_Number
42255 AND A
42256 JP 42263
42259 LD A,6
42261 JR NZ,42265
42263 LD A,24
42265 LD (42486),A
42268 LD (42481),A
42271 XOR A
42272 LD (42520),A
42275 RET
42276 LD A,(42504)
42279 LD HL,42562
42282 CP (HL)
42283 JR Z,42289
42285 LD A,16
42287 JR 42291
42289 LD A,10
42291 LD (42481),A
42294 LD (42486),A
42297 XOR A
42298 LD (42520),A
42301 RET
42302 LD A,(42485)
42305 CP 10
42307 JR Z,42318
42309 LD A,10
42311 LD (42486),A
42314 LD (42481),A
42317 RET
42318 XOR A
42319 LD (42520),A
42322 RET
This entry point is used by the routine at 40658.
42323 SLA A
42325 LD DE,45993
42328 ADD A,E
42329 LD E,A
42330 LD A,(DE)
42331 LD L,A
42332 INC DE
42333 LD A,(DE)
42334 LD H,A
42335 JP (HL)
42336 LD A,(42516)
42339 CP 7
42341 JR C,42363
42343 CALL Random_Number
42346 AND A
42347 JP M,42363
42350 XOR A
42351 LD (42520),A
42354 LD A,11
42356 LD (42481),A
42359 LD (42486),A
42362 RET
42363 LD A,1
42365 LD (42520),A
42368 JP 42138
This entry point is used by the routine at 40658.
42371 LD A,(42506)
42374 LD D,A
42375 LD A,(42564)
42378 LD E,A
42379 SLA E
42381 SLA D
42383 LD HL,42504
42386 LD A,(42562)
42389 CP (HL)
42390 JR Z,42435
42392 LD A,(42504)
42395 AND A
42396 JR NZ,42402
42398 LD A,E
42399 SUB D
42400 JR 42404
42402 LD A,D
42403 SUB E
42404 LD (42478),A
42407 LD A,(42543)
42410 LD HL,46206
42413 ADD A,L
42414 LD L,A
42415 LD A,(HL)
42416 AND A
42417 JR NZ,42430
42419 LD A,(42478)
42422 CP 239
42424 JR NC,42432
42426 CP 22
42428 JR C,42432
42430 XOR A
42431 RET
42432 LD A,1
42434 RET
42435 LD A,(42504)
42438 AND A
42439 JR Z,42445
42441 LD A,D
42442 SUB E
42443 JR 42447
42445 LD A,E
42446 SUB D
42447 LD (42478),A
42450 LD A,(42543)
42453 LD HL,46206
42456 ADD A,L
42457 LD L,A
42458 LD A,(HL)
42459 AND A
42460 JR Z,42430
42462 LD A,(42478)
42465 CP 3
42467 JR C,42430
42469 CP 16
42471 JR NC,42430
42473 LD A,1
42475 RET
42476 NOP
42477 NOP
42478 NOP
42479 NOP
42480 NOP
42481 NOP
42482 NOP
42483 NOP
42484 NOP
42485 NOP
42486 NOP
42487 NOP
42488 NOP
42489 NOP
42490 NOP
42491 NOP
42492 NOP
42493 NOP
42494 NOP
42495 NOP
42496 NOP
42497 NOP
42498 NOP
42499 NOP
42500 NOP
42501 NOP
42502 NOP
42503 NOP
42504 NOP
42505 NOP
42506 NOP
42507 NOP
42508 JP PE,127
42511 NOP
42512 NOP
42513 NOP
42514 NOP
42515 NOP
42516 NOP
42517 NOP
42518 NOP
42519 NOP
42520 NOP
42521 NOP
42522 NOP
42523 NOP
42524 NOP
42525 NOP
42526 NOP
42527 NOP
42528 NOP
42529 NOP
42530 NOP
42531 NOP
42532 NOP
42533 NOP
42534 NOP
42535 NOP
42536 NOP
42537 NOP
42538 NOP
42539 NOP
42540 NOP
42541 NOP
42542 NOP
42543 NOP
42544 NOP
42545 NOP
42546 NOP
42547 NOP
42548 NOP
42549 NOP
42550 NOP
42551 NOP
42552 NOP
42553 NOP
42554 NOP
42555 NOP
42556 NOP
42557 NOP
42558 NOP
42559 NOP
42560 NOP
42561 NOP
42562 NOP
42563 NOP
42564 NOP
42565 LD A,(HL)
42566 NOP
Prev: 41983 Up: Map Next: 42567