3D Tank Zone controls

want to request software or documentation that you can't find online? post in here!
Post Reply
Michael Brown
Posts: 2037
Joined: Sat Apr 03, 2010 12:54 pm
Location: Nottingham
Contact:

3D Tank Zone controls

Post by Michael Brown » Sat Jul 14, 2018 3:47 pm

Hi all,

Does anyone know how the keys are stored in 3D Tank Zone?

One of the controls is Shift Lock and for emulution purposes I really would like to change it to either CTRL or TAB, but I cannot find any code that I recognise in the listing.

regards,
Mick.

User avatar
billcarr2005
Posts: 1247
Joined: Fri Sep 09, 2005 3:01 pm
Location: UK
Contact:

Re: 3D Tank Zone controls

Post by billcarr2005 » Sat Jul 14, 2018 10:06 pm

The controls are checked using keyboard scan (OSBYTE &79)
It's located at &1510 (when relocated, &3910 when ZONE is *LOADed)
The value in X is EOR'd by &80 to get the internal key number

Cursor key control must be stored somewhere else, possibly within the BASIC program... i didn't check this.

Location values are of the relocated code, +&2400 to be in the correct place when *LOADed

Code: Select all

LOCATION	CODE		INTERNAL KEY NUMBER
&1BB2		LDX #&E2	&62	SPACE
&1BC5		LDX #&D0	&50	SHIFT LOCK
&1BD0		LDX #&C0	&40	CAPS LOCK
&1BDB		LDX #&B7	&37	P
&1BE6		LDX #&C7	&47	@
&1BEE		LDX #&90	&10	Q
&1BFF		LDX #&A1	&21	W
&1C53		LDX #&80	&00	SHIFT
&1C5C		LDX #&E1	&61	Z
&1C65		LDX #&E8	&68	/
&1C6E		LDX #&C8	&48	:
After *LOAD ZONE, to change SHIFT LOCK to

CTRL would be ?&3FC6=&81
TAB would be ?&3FC6=&E0
Last edited by billcarr2005 on Sat Jul 14, 2018 10:18 pm, edited 5 times in total.

Michael Brown
Posts: 2037
Joined: Sat Apr 03, 2010 12:54 pm
Location: Nottingham
Contact:

Re: 3D Tank Zone controls

Post by Michael Brown » Sun Jul 15, 2018 3:32 pm

Fantastic Bill!

I never would have found this.
I have changed it to TAB and it now works.

Yes the cursor keys are done via INKEY in the basic.

thanks.
Mick.

Post Reply