1B8A: wait_for_page: Wait up to 2 minutes for page to load (or enter key pressed).
wait_for_page |
1B8A |
XOR A |
|
1B8B |
LD (page_ready_flag),A |
|
1B8E |
LD (ignore_packets_flag),A |
|
1B91 |
LD DE,$0BB8 |
wait_for_page_0 |
1B94 |
LD A,(page_ready_flag) |
|
1B97 |
OR A |
|
1B98 |
JR Z,wait_for_page_1 |
|
1B9A |
LD (ignore_packets_flag),A |
|
1B9D |
XOR A |
|
1B9E |
RET |
wait_for_page_1 |
1B9F |
LD BC,$BFFE |
|
1BA2 |
IN A,(C) |
|
1BA4 |
RRCA |
|
1BA5 |
JR C,wait_for_page_2 |
|
1BA7 |
LD A,$01 |
|
1BA9 |
RET |
wait_for_page_2 |
1BAA |
PUSH DE |
|
1BAB |
CALL data_to_header_row |
|
1BAE |
CALL display_header_row |
|
1BB1 |
POP DE |
|
1BB2 |
EI |
|
1BB3 |
HALT |
|
1BB4 |
DI |
|
1BB5 |
DEC DE |
|
1BB6 |
LD A,D |
|
1BB7 |
OR E |
|
1BB8 |
JR NZ,wait_for_page_0 |
|
1BBA |
LD A,$02 |
|
1BBC |
RET |