routine16 |
9941 |
LD HL,(object_table_entry_pointer) |
|
9944 |
LD A,(CURSP) |
|
9947 |
CP $22 |
|
9949 |
JR Z,routine16_0 |
|
994B |
CP $23 |
|
994D |
JR Z,routine16_0 |
|
994F |
LD A,(HL) |
|
9950 |
LD DE,$0321 |
|
9953 |
ADD HL,DE |
|
9954 |
LD (HL),A |
|
9955 |
LD A,(CURSP) |
routine16_0 |
9958 |
LD HL,(object_table_entry_pointer) |
|
995B |
LD (HL),A |
|
995C |
LD DE,$00A1 |
|
995F |
ADD HL,DE |
|
9960 |
LD (HL),$01 |
|
9962 |
DEC DE |
|
9963 |
ADD HL,DE |
|
9964 |
LD (HL),$00 |
|
9966 |
ADD HL,DE |
|
9967 |
LD A,(current_player) |
|
996A |
LD (HL),A |
|
996B |
LD A,(unknown02) |
|
996E |
OR A |
|
996F |
JR Z,routine16_1 |
|
9971 |
SET 4,(HL) |
routine16_1 |
9973 |
HALT |
|
9974 |
RET |