915F: Creates and prints a factoring message.
Print_FactorMessage |
915F |
POP HL |
|
9160 |
LD DE,Terminal_Buffer |
|
9163 |
LD A,$5E |
Print_FactorMessage_0 |
9165 |
CP (HL) |
|
9166 |
JR Z,Print_FactorMessage_1 |
|
9168 |
LDI |
|
916A |
JR Print_FactorMessage_0 |
Print_FactorMessage_1 |
916C |
INC HL |
|
916D |
PUSH HL |
|
916E |
LD A,$2B |
|
9170 |
LD (DE),A |
|
9171 |
INC DE |
|
9172 |
LD C,(IX+$02) |
|
9175 |
LD B,$00 |
|
9177 |
LD HL,(Handle_Lockers) |
|
917A |
ADD HL,BC |
|
917B |
LD B,$05 |
Print_FactorMessage_2 |
917D |
LD A,(HL) |
|
917E |
AND A |
|
917F |
JR Z,Print_FactorMessage_5 |
|
9181 |
LD A,$2B |
|
9183 |
LD (DE),A |
|
9184 |
INC DE |
|
9185 |
LD A,$A0 |
|
9187 |
LD (DE),A |
|
9188 |
INC DE |
|
9189 |
LD A,(HL) |
|
918A |
PUSH BC |
|
918B |
PUSH HL |
|
918C |
PUSH DE |
|
918D |
CALL ObjStr_FindByIndex |
|
9190 |
POP DE |
Print_FactorMessage_3 |
9191 |
LD A,(HL) |
|
9192 |
CP $5E |
|
9194 |
JR Z,Print_FactorMessage_4 |
|
9196 |
CP $2B |
|
9198 |
JR Z,Print_FactorMessage_4 |
|
919A |
LDI |
|
919C |
JR Print_FactorMessage_3 |
Print_FactorMessage_4 |
919E |
POP HL |
|
919F |
INC HL |
|
91A0 |
POP BC |
|
91A1 |
DJNZ Print_FactorMessage_2 |
Print_FactorMessage_5 |
91A3 |
LD A,$5E |
|
91A5 |
LD (DE),A |
|
91A6 |
LD HL,Terminal_Buffer |
|
91A9 |
JP Message_ClearIfNoPlans |