Reading the keyboard using JSR $FFE4
Posted: Wed Mar 13, 2024 7:54 pm
Programming on the emulator, I'm calling $ffe4 to read the keyboard, for various purposes. Most of the time I get the expected result.
However, I have a routine which waits for the user to press a key. The first time $ffe4 is called, it gets 0 back. The routine then waits a while (to make a cursor flash at a pleasant speed) and calls $ffe4 again. This time, it gets $0d (Enter). I've made sure I don't press Enter at any point.
Any idea what I may be doing wrong, or if there's something to be aware of regarding reading the keyboard using $ffe4?
However, I have a routine which waits for the user to press a key. The first time $ffe4 is called, it gets 0 back. The routine then waits a while (to make a cursor flash at a pleasant speed) and calls $ffe4 again. This time, it gets $0d (Enter). I've made sure I don't press Enter at any point.
Any idea what I may be doing wrong, or if there's something to be aware of regarding reading the keyboard using $ffe4?