Prev: 54647 Up: Map Next: 54894
54876: Set zero flag if key pressed is already assigned to a control, otherwise reset
Used by the routine at 54647.
Input
A Index of key pressed
Output
F Zero flag set if pressed key is already assigned, otherwise reset
54876 PUSH BC Store BC
54877 PUSH HL Store HL
54878 LD HL,54894 Point HL at start of list of current keyboard control characters
54881 LD B,5 Load B with 5 (as there are five controls to process)
54883 CP (HL) If key pressed is the same as current control key index...
54884 JR Z,54891 ...then skip ahead to 54891
54886 INC HL Advance HL to next entry in list of current keyboard control characters
54887 DJNZ 54883 Decrease B (remaining number of control characters to process) and loop back to 54883 if not zero
54889 CP 0 Reset zero flag
54891 POP HL Restore HL
54892 POP BC Restore BC
54893 RET Return
Prev: 54647 Up: Map Next: 54894