Prev: 0A23 Up: Map Next: 0A4F
0A3D: THE 'CURSOR RIGHT' SUBROUTINE
The address of this routine is derived from an offset found in the control character table.
This subroutine performs an operation identical to the BASIC statement 'PRINT OVER 1;CHR$ 32;'.
Input
B Current line number
C Current column number
HL Display file address or printer buffer address
Output
PO_RIGHT 0A3D LD A,($5C91) Fetch P-FLAG and save it on the machine stack.
0A40 PUSH AF
0A41 LD (IY+$57),$01 Set P-FLAG to OVER 1.
0A45 LD A," " A 'space'.
0A47 CALL PO_CHAR Print the character.
0A4A POP AF Fetch the old value of P-FLAG.
0A4B LD ($5C91),A
0A4E RET Finished. Note: the programmer has forgotten to exit via PO_STORE, which is a bug.
Prev: 0A23 Up: Map Next: 0A4F