B7B9: Print message in terminal screen.
Print_TerminalMessage |
B7B9 |
CALL CountDown |
|
B7BC |
LD HL,Print_Delay |
|
B7BF |
LD A,(HL) |
|
B7C0 |
AND A |
|
B7C1 |
JR Z,Print_TerminalMessage_0 |
|
B7C3 |
DEC (HL) |
|
B7C4 |
RET |
Print_TerminalMessage_0 |
B7C5 |
LD HL,(Message_Next_Ptr) |
|
B7C8 |
LD A,(HL) |
|
B7C9 |
CP $5E |
|
B7CB |
RET Z |
|
B7CC |
LD A,$01 |
|
B7CE |
CALL $1601 |
|
B7D1 |
CALL PRINT_AT |
|
B7D4 |
LD B,$02 |
Print_TerminalMessage_1 |
B7D6 |
LD DE,(Message_Next_Ptr) |
|
B7DA |
LD HL,Message_X |
|
B7DD |
LD A,(DE) |
|
B7DE |
CP $20 |
|
B7E0 |
JR Z,Print_TerminalMessage_2 |
|
B7E2 |
CP $2B |
|
B7E4 |
JR Z,Print_TerminalMessage_2 |
|
B7E6 |
AND $7F |
|
B7E8 |
INC DE |
|
B7E9 |
LD (Message_Next_Ptr),DE |
|
B7ED |
INC (HL) |
|
B7EE |
CALL Print_Character |
|
B7F1 |
LD A,(DE) |
|
B7F2 |
CP $5E |
|
B7F4 |
RET Z |
|
B7F5 |
CP $20 |
|
B7F7 |
JP Z,Print_TerminalCursor |
|
B7FA |
CP $2B |
|
B7FC |
JP Z,Print_TerminalCursor |
|
B7FF |
DJNZ Print_TerminalMessage_1 |
|
B801 |
JP Print_TerminalCursor |
Print_TerminalMessage_2 |
B804 |
LD A,$02 |
|
B806 |
LD (Print_Delay),A |
|
B809 |
LD A,(DE) |
|
B80A |
CP $2B |
|
B80C |
JR Z,Print_TerminalMessage_3 |
|
B80E |
LD A,(HL) |
|
B80F |
CP $13 |
|
B811 |
JR Z,Print_TerminalMessage_4 |
Print_TerminalMessage_3 |
B813 |
INC (HL) |
|
B814 |
LD A,$20 |
|
B816 |
CALL Print_Character |
|
B819 |
LD A,(DE) |
|
B81A |
CP $2B |
|
B81C |
JR NZ,Print_TerminalMessage_4 |
|
B81E |
LD (HL),$1F |
Print_TerminalMessage_4 |
B820 |
INC DE |
|
B821 |
LD (Message_Next_Ptr),DE |
|
B825 |
LD C,(HL) |
Print_TerminalMessage_5 |
B826 |
LD A,(DE) |
|
B827 |
CP $20 |
|
B829 |
JR Z,Print_TerminalMessage_6 |
|
B82B |
CP $2B |
|
B82D |
JR Z,Print_TerminalMessage_6 |
|
B82F |
CP $5E |
|
B831 |
JR Z,Print_TerminalMessage_6 |
|
B833 |
INC C |
|
B834 |
INC DE |
|
B835 |
JR Print_TerminalMessage_5 |
Print_TerminalMessage_6 |
B837 |
LD A,$1F |
|
B839 |
CP C |
|
B83A |
JR NC,Print_TerminalMessage_7 |
|
B83C |
LD (HL),$FF |
Print_TerminalMessage_7 |
B83E |
JP Print_TerminalCursor |