Assembly callable version of cpct_isKeyPressed (only callable from ASM)
(2B BC) keyId | A 16-bit value containing a Matrix Line(1B, C) and a Bit Mask(1B, B). |
call cpct_isKeyPressed_asm
A | false (0, if not pressed) or true (>0, if pressed). Take into account that true is not 1, but any non-0 number. |
Performs the same operation as cpct_isKeyPressed but is designed to be called from assembly code only. It receives a cpct_keyID value on BC register and checks if that key was pressed at the last keyboard scan. A register holds return value, with a 0 if key was not pressed, and a value different than 0 (not necessary 1) if the key was pressed.
A, BC, D, HL
11 bytes
Case | Cycles | microSecs (us) ------------------------------- Any | 47 | 11.75 -------------------------------