8086 listen to keyboard while drawing
问题 I'm familiar with INT 16h that waits for keyboard input, but I'm developing a game and I would like there to be a game loop, that animates things on the screen, and whenever there is a keyboard hit, the 8086 should go to my interrupt handler and tell me which key has been pressed to update my data accordingly. How could I do so ? 回答1: You can also poll for input with 1 in AH instead of 0, when calling INT 16. INT 16h / AH = 01h - check for keystroke in the keyboard buffer. return: ZF = 1 if