"New" Game - ZONKEY KONG! by DnD

General games-related topics
User avatar
BarryN
Posts: 151
Joined: Thu Nov 09, 2017 11:34 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by BarryN »

I'd be happy to do some testing with a ZXPand joystick. Reading it is fairly simple.

Code: Select all

Read the joystick port:
   ld bc, %1110000000000111
   ld a,$a0
   out (c),a
   [some small delay, 10 clocks or so]
   in a,(c)
The direction bits will be in the accumulator and have the following meanings:
Bit -- Direction
 7      Up
 6      Down
 5      Left
 4      Right
 3      Fire
The corresponding bit will be 0 when the joystick is pushed in that direction.
Bits 2 to 0 inclusive are undefined, but you might just work out that bit 0 represents whether a card is present...
Alternatively you can call a function at 8190 ($1ffe) to retrieve the value.
Spinnetti
Posts: 269
Joined: Sat Sep 12, 2020 11:29 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by Spinnetti »

Thanks.. is there a mode where it maps to keys? If so, then the current routine would still work. Just move the joystick instead of keys (at least that's how I wired my joystick port in 1984 lol). I'd love to get a ZXpand.. any word if they'll ever be made again?
Zeddy: ZX80, ZX81/ZXpand, TS1000/ZXpand, TS1500/Zxpand+,Printer
Speccy: 48k, +, +2, +3, TS2068, "Bare Metal" Pi, Next KS2, IF1/Microdrives/Vdrive/Light Gun/VGA-Joy
QL: Minerva/QL-VGA/Custom PSU
C5: 24v, LiFE battery, Disc brakes
User avatar
1024MAK
Posts: 5332
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: "New" Game - ZONKEY KONG! by DnD

Post by 1024MAK »

Spinnetti wrote: Sat Apr 24, 2021 11:44 pm Thanks.. is there a mode where it maps to keys? If so, then the current routine would still work. Just move the joystick instead of keys (at least that's how I wired my joystick port in 1984 lol). I'd love to get a ZXpand.. any word if they'll ever be made again?
Only if your code uses the ROM routine to read the keyboard, like BASIC does with INKEY$...

If/when they get made depends on if/when the designer decides to make more...


ZXpand+ FAQ

What is a ZXpand+ ?

The ZXpand+ is an SD card interface with 32K RAM and built in AY sound chip for the Sinclair ZX80 and ZX81.

I would like to purchase a ZXpand+, when and where are they available to buy from?

They are listed on Sell My Retro (https://www.sellmyretro.com) as and when the designer (SirMorris) has made some for sale. Your best bet is to add a keyword watch in your profile for ZXPand, so that you receive an email as soon as some are listed for sale by SirMorris.

Is there any other source for either a ZXpand, ZXpand+, or Zxpand+AY?

Unfortunately, no. And it’s very rare for one to be offered for sale second hand either....
You will just have to wait until SirMorris lists some more for sale.

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Autumn is here. Bye bye summer 2024...
computergui
Posts: 21
Joined: Tue Mar 09, 2021 10:56 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by computergui »

BarryN wrote: Sat Apr 24, 2021 11:07 pm I'd be happy to do some testing with a ZXPand joystick. Reading it is fairly simple.
We are working on it and will let you know when we re-upload it. Looks pretty straight forward.

Hope to have something posted soon.
Timex Sinclair 1000 with ZXPand
Timex Sinclair 1500 - 4
Timex Sinclair 2068 -2
ZX Spectrum 48K - 12ish...
ZX Spectrum Plus
ZX Spectrum 128K
ZX Spectrum Plus 2
ZX Spectrum Plus 3
Sinclair QL
ZX Spectrum Next KS 2 (when it lands!)
ZX 48K Spider
ZX Max 128
Spinnetti
Posts: 269
Joined: Sat Sep 12, 2020 11:29 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by Spinnetti »

Hi all...

I didn't refactor keyboard code yet, but Don took a shot at the joystick code for zxpand. We are shooting in the dark as we don't have a way to test it, but give it a shot. If it works, I'll update the file in the first post.
Attachments
Zonkey Kong 1.02 20210428 beta.p
(10.89 KiB) Downloaded 284 times
Zeddy: ZX80, ZX81/ZXpand, TS1000/ZXpand, TS1500/Zxpand+,Printer
Speccy: 48k, +, +2, +3, TS2068, "Bare Metal" Pi, Next KS2, IF1/Microdrives/Vdrive/Light Gun/VGA-Joy
QL: Minerva/QL-VGA/Custom PSU
C5: 24v, LiFE battery, Disc brakes
User avatar
BarryN
Posts: 151
Joined: Thu Nov 09, 2017 11:34 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by BarryN »

I tested this on my Timex Sinclair 1000 and ZXPand Plus. The joystick seems to work for up, down, left, and right as expected. Any specific tests you want me to perform? I presume it does not use the fire button.
computergui
Posts: 21
Joined: Tue Mar 09, 2021 10:56 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by computergui »

BarryN wrote: Wed Apr 28, 2021 7:07 pm I tested this on my Timex Sinclair 1000 and ZXPand Plus. The joystick seems to work for up, down, left, and right as expected. Any specific tests you want me to perform? I presume it does not use the fire button.
Nope...thanks!!!

And for the first time ever, a piece of code we did without testing actually worked!!!

ZXpand is well documented and didn't take much to include. Really appreciate the assistance!
Timex Sinclair 1000 with ZXPand
Timex Sinclair 1500 - 4
Timex Sinclair 2068 -2
ZX Spectrum 48K - 12ish...
ZX Spectrum Plus
ZX Spectrum 128K
ZX Spectrum Plus 2
ZX Spectrum Plus 3
Sinclair QL
ZX Spectrum Next KS 2 (when it lands!)
ZX 48K Spider
ZX Max 128
computergui
Posts: 21
Joined: Tue Mar 09, 2021 10:56 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by computergui »

And just for fun, here is a link to a Timex Sinclair 2040 printout of some of our early code. Hand written date at the top.

Just a couple of kids...lol

http://mail.thecrawfords.org/Zonkey.jpg
Timex Sinclair 1000 with ZXPand
Timex Sinclair 1500 - 4
Timex Sinclair 2068 -2
ZX Spectrum 48K - 12ish...
ZX Spectrum Plus
ZX Spectrum 128K
ZX Spectrum Plus 2
ZX Spectrum Plus 3
Sinclair QL
ZX Spectrum Next KS 2 (when it lands!)
ZX 48K Spider
ZX Max 128
Spinnetti
Posts: 269
Joined: Sat Sep 12, 2020 11:29 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by Spinnetti »

NIce work Don! Hilarious that we were working on this exact game in 1984... Made more progress then than in the intervening 35 years lol.

I'll version the code and update the original post
Zeddy: ZX80, ZX81/ZXpand, TS1000/ZXpand, TS1500/Zxpand+,Printer
Speccy: 48k, +, +2, +3, TS2068, "Bare Metal" Pi, Next KS2, IF1/Microdrives/Vdrive/Light Gun/VGA-Joy
QL: Minerva/QL-VGA/Custom PSU
C5: 24v, LiFE battery, Disc brakes
User avatar
BarryN
Posts: 151
Joined: Thu Nov 09, 2017 11:34 pm

Re: "New" Game - ZONKEY KONG! by DnD

Post by BarryN »

computergui wrote: Wed Apr 28, 2021 8:13 pm
BarryN wrote: Wed Apr 28, 2021 7:07 pm I tested this on my Timex Sinclair 1000 and ZXPand Plus. The joystick seems to work for up, down, left, and right as expected. Any specific tests you want me to perform? I presume it does not use the fire button.
Nope...thanks!!!

And for the first time ever, a piece of code we did without testing actually worked!!!

ZXpand is well documented and didn't take much to include. Really appreciate the assistance!
Thank you! Nice game.
Post Reply