Prev: C249 Up: Map Next: C271
C267: Subtract Seven
Used by the routine at HandleBackspaceKey.
Steps the print column back by one cell and wraps when the column underflows.
SubtractSeven C267 LD A,C Read the low byte of the count.
C268 SUB $07 Step back one character cell, wrapping to the previous row when the column underflows.
C26A LD C,A Store the result in the low byte of the count.
C26B RET NC Return when the column still fits on this row.
C26C DEC L Count down the low byte of the pointer.
C26D ADD A,$08 Advance the result by 08.
C26F LD C,A Store the column.
C270 RET Return.
View the equivalent code in;
Prev: C249 Up: Map Next: C271