Prev: 46719 Up: Map Next: 46842
46824: Print 'PRESS'C'TO CHANGE NAME' and wait for a keypress
Used by the routines at 47336 and 61408. Returns with the zero flag set if 'c' was pressed.
46824 LD HL,23611 This is the FLAGS system variable
46827 RES 5,(HL) Signal: no key pressed
46829 CALL 46070 Print 'PRESS'C'TO CHANGE NAME'
46832 CALL 26426 Wait for a keypress and collect its ASCII code in A
46835 JR Z,46832
46837 OR 32 Convert the ASCII code to lower case
46839 CP 99 Set the zero flag if 'c' (or 'C') was pressed
46841 RET
Prev: 46719 Up: Map Next: 46842