I wrote a basic keyboard scanning routine for my #m6502 computer today. You hold a key down, run the routine, and then check a memory location for the scan code.
Next, I need to write an interrupt handler to do this scanning automatically.
I wrote a basic keyboard scanning routine for my #m6502 computer today. You hold a key down, run the routine, and then check a memory location for the scan code.
Next, I need to write an interrupt handler to do this scanning automatically.
Ok. I’m one baby step closer to a “keyboard driver”. I have validated that interrupts work on my system.
I configured a timer in the 6522 VIA to interrupt the processor 60 times/second. My interrupt handler just increments a 32-bit int and returns.
It works! I’m able to read the “u32” value and watch it change over time.
Now on to actual functionality! #m6502 #retrocomputing