So I'm using the following code to see which key was pressed
* -- grab input --
*Check to see if a key has been pressed
beq nokey Key wasn't pressed, clear movement
*Read the key that was pressed and find out which key it was
then comparing the d1 register e.g.:
cmp.b #'4',d1 Key pressed: 4 (left)
OK that's all fine, however if I press a key down and hold, it detects the key press, but then it's almost like it clears the d1 for a second or so and then registers it again.
Next issue is that if I press and hold a key, then press another key, the first key is no longer registering, even though it's still being pressed.
Is this correct? Am I using the correct method for detecting key presses? Or should I be using a better way of detecting multiple key presses?
Any help on the matter would be much appreciated, thank you, Rich
Retro Rich - Retro gaming and coding - http://www.retrorich.co.uk/
Tweet me @rich_lloyd