![]() |
Routines |
| Prev: 60241 | Up: Map | Next: 60700 |
|
Used by the routine at InputLine.
Redraws the input row, then the cursor at InputLine_DrawCursor.
|
||||
| InputLine_Redraw | 60608 | LD HL,23470 | Point HL at InputBuffer. | |
| 60611 | SUB A | Write 0 to *PrintState_Flags and *PrintState_Column. | ||
| 60612 | LD (23542),A | |||
| 60615 | LD (23543),A | |||
| 60618 | LD A,5 | Write 5 to *PrintState. | ||
| 60620 | LD (23541),A | |||
| 60623 | LD A,22 | Write 22 to *PrintState_Row. | ||
| 60625 | LD (23544),A | |||
| 60628 | LD A,(23547) | Jump to InputLine_Redraw_Pad if the line is empty. | ||
| 60631 | AND A | |||
| 60632 | JR Z,InputLine_Redraw_Pad | |||
| 60634 | LD B,A | B=the line length. | ||
|
Print each buffered character.
|
||||
| InputLine_Redraw_Loop | 60635 | LD A,(HL) | Call PrintCharacter for the next character. | |
| 60636 | LD (23545),A | |||
| 60639 | CALL PrintCharacter | |||
| 60642 | INC HL | |||
| 60643 | DJNZ InputLine_Redraw_Loop | |||
|
Pad the rest of the row with spaces.
|
||||
| InputLine_Redraw_Pad | 60645 | LD A,32 | Write a space to *PrintState_Character. | |
| 60647 | LD (23545),A | |||
| 60650 | CALL PrintCharacter | Call PrintCharacter. | ||
| 60653 | CALL PrintCharacter | Call PrintCharacter. | ||
|
This entry point is used by the routine at InputLine.
Draw the blinking cursor.
|
||||
| InputLine_DrawCursor | 60656 | LD A,40 | Write 40 to *PrintState. | |
| 60658 | LD (23541),A | |||
|
This entry point is used by the routine at InputLine_ClearCursor.
Set
XOR mode and load a space glyph.
|
||||
| InputLine_DrawCursor_Body | 60661 | LD A,1 | Set XOR mode in *PrintState_Flags. |
|
| 60663 | LD (23542),A | |||
| 60666 | LD A,32 | Write a space to *PrintState_Character. | ||
| 60668 | LD (23545),A | |||
| 60671 | LD A,22 | Write 22 to *PrintState_Row. | ||
| 60673 | LD (23544),A | |||
| 60676 | LD A,(23546) | Copy *InputLineState to *PrintState_Column. | ||
| 60679 | LD (23543),A | |||
| 60682 | CP 32 | Jump to InputLine_DrawCursor_Print if the column is still on this row. | ||
| 60684 | JR C,InputLine_DrawCursor_Print | |||
| 60686 | SUB 32 | Wrap onto row 23. | ||
| 60688 | LD (23543),A | |||
| 60691 | LD A,23 | |||
| 60693 | LD (23544),A | |||
|
Print the cursor glyph.
|
||||
| InputLine_DrawCursor_Print | 60696 | CALL PrintCharacter | Call PrintCharacter. | |
| 60699 | RET | Return. | ||
| Prev: 60241 | Up: Map | Next: 60700 |