Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2379

8-bit acorn software: classic games • Re: Qwak 2024 update (prerelease)

$
0
0
If you *LOAD QWAKDAT at the default &1400, you'll find

Code:

31A9 LDX #&C031AB LDA #&7931AD JSR OSBYTE31B0 CPX #&C0
This is performing a keyboard scan and checking for CAPS LOCK (internal key number &40 EOR &80)
Changing 31AA and 31B1 to &E1 will check for Z (internal key number &61)
Hiya Bill :)

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! :D

Statistics: Posted by Cybershark — Sun Nov 24, 2024 10:58 am



Viewing all articles
Browse latest Browse all 2379

Trending Articles