Routines
| Prev: D95C | Up: Map | Next: D978 |
D968: End the typed line with a full stop if it has none
|
||||||||||||||||
| D968 | DEC HL | Step HL back one byte - The last character typed: a full stop? Then done | ||||||||||||||
| D969 | LD A,(HL) | Read the byte HL points at into A | ||||||||||||||
| D96A | CP $2E | Compare A with $2E | ||||||||||||||
| D96C | JR Z,$D976 | If A equals $2E, skip ahead to D976 | ||||||||||||||
| D96E | INC HL | Step HL on to the next byte - Else put one after it, count it, and echo it (A9B7) | ||||||||||||||
| D96F | DEC B | Subtract one from B | ||||||||||||||
| D970 | LD A,$2E | Load A with $2E | ||||||||||||||
| D972 | LD (HL),A | Store A at the address HL points to | ||||||||||||||
| D973 | CALL $A9B7 | Call the routine "Print character A, a word at a time (word wrap)" (A9B7) | ||||||||||||||
| D976 | INC HL | Step HL on to the next byte - Step HL past the end | ||||||||||||||
| D977 | RET | Return to the caller | ||||||||||||||
| Prev: D95C | Up: Map | Next: D978 |