91AC: Display a locker message in the terminal.
Locker_DisplayMsg |
91AC |
PUSH IX |
|
91AE |
PUSH HL |
|
91AF |
LD A,(IX+$0E) |
|
91B2 |
AND $7F |
|
91B4 |
CP $04 |
|
91B6 |
JR NZ,Locker_DisplayMsg_0 |
|
91B8 |
LD HL,(Locker_Ptr) |
|
91BB |
LD L,(HL) |
|
91BC |
LD H,$00 |
|
91BE |
ADD HL,HL |
|
91BF |
LD DE,$7C09 |
|
91C2 |
ADD HL,DE |
|
91C3 |
LD E,(HL) |
|
91C4 |
INC HL |
|
91C5 |
LD D,(HL) |
|
91C6 |
EX DE,HL |
|
91C7 |
CALL Message_ClearIfNoPlans |
|
91CA |
JR Locker_DisplayMsg_3 |
Locker_DisplayMsg_0 |
91CC |
LD E,(IX+$02) |
|
91CF |
LD D,$00 |
|
91D1 |
LD HL,(Handle_Lockers) |
|
91D4 |
ADD HL,DE |
|
91D5 |
LD A,(HL) |
|
91D6 |
RLC A |
|
91D8 |
JR NZ,Locker_DisplayMsg_1 |
|
91DA |
CALL Print_FactorMessage |
|
91DD |
DEFM "no assembly in progress",$5E |
|
91F5 |
JR Locker_DisplayMsg_3 |
Locker_DisplayMsg_1 |
91F7 |
JR C,Locker_DisplayMsg_2 |
|
91F9 |
CALL Print_FactorMessage |
|
91FC |
DEFM "assembly in progress",$5E |
|
9211 |
JR Locker_DisplayMsg_3 |
Locker_DisplayMsg_2 |
9213 |
CALL Print_FactorMessage |
|
9216 |
DEFM "assembly complete",$5E |
Locker_DisplayMsg_3 |
9228 |
POP HL |
|
9229 |
POP IX |
|
922B |
RET |