Debugging ========= Thanks Vice for its great debugging capabilities. Today I got stuck because for some reasons pressing the "4" key would sometimes be interpreted as a "R". The key code for 4 is $0B, while it's $11 for R. It took me a while to notice that 11 is the decimal equivalent of $0B and (correctly) start suspecting the issue was that the interrupt routine that scans the keyboard was being invoked when the CPU is decimal mode. The good news is that the bug was fixed just by adding a call to CLD at the beginning of the interrupt routine. But yeah, I might be too old for this shit :)