Using key scan/read code
Posted: Sun Dec 01, 2019 1:39 pm
Apologies for what must seem like a really thick question Keith, but I'm getting rid of the last bit of firmware use by incorporating your Key Scanning/Reading code into my program, but I'm a little stuck on how to actually check for a key press.
Like, how do you actually tell the computer if you push, for example "s", then do stuff?
With the firmware I just load the accumulator with the keycode of the key I want to push and then do a skip 'jr' over the "do stuff" code if it's not pushed, so what would be the equivalent of that using the Hardware Keyboard map in the key reading code?
(PS, the transparency code from my last post worked a treat, so cheers for that!)
Like, how do you actually tell the computer if you push, for example "s", then do stuff?
With the firmware I just load the accumulator with the keycode of the key I want to push and then do a skip 'jr' over the "do stuff" code if it's not pushed, so what would be the equivalent of that using the Hardware Keyboard map in the key reading code?
(PS, the transparency code from my last post worked a treat, so cheers for that!)