BE52: routine46
routine46 |
BE52 |
LD A,B |
|
BE53 |
OR A |
|
BE54 |
RET Z |
|
BE55 |
LD A,C |
|
BE56 |
OR A |
|
BE57 |
RET Z |
|
BE58 |
LD A,$0F |
|
BE5A |
CP C |
|
BE5B |
RET M |
|
BE5C |
LD A,$0A |
|
BE5E |
CP B |
|
BE5F |
RET M |
|
BE60 |
CALL coordinate_to_address |
|
BE63 |
LD A,(HL) |
|
BE64 |
OR A |
|
BE65 |
RET Z |
|
BE66 |
PUSH HL |
|
BE67 |
LD DE,$0141 |
|
BE6A |
ADD HL,DE |
|
BE6B |
LD A,(HL) |
|
BE6C |
CP $04 |
|
BE6E |
POP HL |
|
BE6F |
RET Z |
|
BE70 |
LD A,(HL) |
|
BE71 |
CP $22 |
|
BE73 |
JP P,routine46_0 |
|
BE76 |
LD DE,$01E1 |
|
BE79 |
ADD HL,DE |
|
BE7A |
LD A,(HL) |
|
BE7B |
AND $07 |
|
BE7D |
INC A |
|
BE7E |
LD HL,(current_player) |
|
BE81 |
INC L |
|
BE82 |
CP L |
|
BE83 |
RET Z |
|
BE84 |
JR routine46_1 |
routine46_0 |
BE86 |
SUB $29 |
|
BE88 |
RET M |
|
BE89 |
INC A |
|
BE8A |
LD HL,(current_player) |
|
BE8D |
INC L |
|
BE8E |
CP L |
|
BE8F |
RET Z |
routine46_1 |
BE90 |
LD (unknown20),A |
|
BE93 |
RET |