摘要 |
storing the start address of a text in a text pointer, resetting a correction buffer, taking the correction buffer pointer as the correction buffer start address, and reading a code stored in the text memory the text pointer indicates; if the code read is not a text ending code, printing the address indicated by the text pointer, storing the printed result in the correction buffer indicated by the correction buffer pointer, moving a carriage to the right, and increasing the value of the text pointer by one for the preparation of reading the next code; if the value of the correction buffer pointer is the end address of the correction buffer, shifting the value of the correction buffer to the left by one byte, and if not, increasing the value of the correction buffer pointer by one; if there is key input, storing the value of the correction buffer pointer in a memory; and, if there is another key input, classifying the input keys into character key, space key, back space key, correction key, and text print key to perform the respective key processes.
|