Prev: 34459 Up: Map Next: 34667
34657: Print: Wrap The Column
Used by the routine at PrintWriteACharacterToTheScreen.
Wraps the print column. A column below 6 is moved on by 8, and the count drops by one.
Print_WrapTheColumn 34657 LD A,C Take 6 off the column and return if it did not go below zero.
34658 SUB 6
34660 LD C,A
34661 RET NC
34662 ADD A,8 Otherwise add 8 to it.
34664 LD C,A Copy the result into C.
34665 DEC L Drop one from the count.
34666 RET Return.
View the equivalent code in;
Prev: 34459 Up: Map Next: 34667