![]() |
Routines |
DE | Message address for character's name + offset |
HL | Message address for character's name |
47080 | PUSH HL | |
47081 | PUSH DE | |
47082 | LD DE,20512 | Display file address |
47085 | CALL 45032 | Print character's name (which is being edited) |
47088 | CALL 26426 | Wait for a keypress and collect its ASCII code in A |
47091 | JR Z,47088 | |
47093 | POP DE | |
47094 | POP HL | Restore character name message address to HL |
47095 | CP 13 | Was ENTER pressed? |
47097 | RET Z | Return if so |
47098 | LD (DE),A | Store the key just pressed |
47099 | INC E | Move to next character in name |
47100 | LD A,E | Set A equal to the number of characters typed so far |
47101 | SUB L | |
47102 | RET |