Hiya BillIf you *LOAD QWAKDAT at the default &1400, you'll findThis is performing a keyboard scan and checking for CAPS LOCK (internal key number &40 EOR &80)Code:
31A9 LDX #&C031AB LDA #&7931AD JSR OSBYTE31B0 CPX #&C0
Changing 31AA and 31B1 to &E1 will check for Z (internal key number &61)
![Smile :)](http://www.stardot.org.uk/forums/images/smilies/icon_smile.gif)
Assembler was never my thing but I did get about 2/3rds of the way to what you suggest. I ran a simple scan through the code data for the OSBYTE value (&FFF4) and checked if the key values were anywhere around that. I even had some of Jamie's original game source code to refer to but I wasn't 100% what I was doing and I only changed one of the &C0 values.
Thanks for the assist!
![Very Happy :D](http://www.stardot.org.uk/forums/images/smilies/icon_biggrin.gif)
Statistics: Posted by Cybershark — Sun Nov 24, 2024 10:58 am