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

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

$
0
0
What I'd love to do is to be able to offer alternate keys for gameplay, as CAPS and CTRL for left and right does not suit PC keyboards. I did poke around in the code and thought I'd found the values to change but they didn't seem to have any effect. Might have another look at it but, if there's any code nerds out there that can figure it out for me, I'd be most appreciative!
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)

Likewise

Code:

31B6 LDX #&8131B8 LDA #&7931BA JSR OSBYTE31BD CPX #&81
is checking for CTRL (internal key number &01 EOR &80)
Changing 31B7 and 31BE to &C2 will check for X (internal key number &42)

The checks for SHIFT and RETURN are located around 3187 and 32DC respectively :)
-&1000 for the relocated code when the game is running

Statistics: Posted by billcarr2005 — Sun Nov 24, 2024 4:49 am



Viewing all articles
Browse latest Browse all 3582

Latest Images

Trending Articles



Latest Images