GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

People are still making stuff for the Sinclair related machines. Tell us about new games and other software that runs on the Spectrum, ZX80/ZX81, Pentagon and Next.
Post Reply
40crisis
Drutt
Posts: 8
Joined: Fri Dec 04, 2020 6:30 am

GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by 40crisis »

Hello,

This is my lame attempt to emulate GB Tetris on a zx :mrgreen:
For everyone tranquility, please never include tetris rom in distribution package.

Here:
https://we.tl/t-AEhTpnE6hm

Image

Image

Image

Image

Image

Image
User avatar
bob_fossil
Manic Miner
Posts: 661
Joined: Mon Nov 13, 2017 6:09 pm

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by bob_fossil »

Got this working after a bit of fiddling about with the .bat file as I'm on Linux. Very impressive but could you turn off the tone that plays when you rotate a piece or reduce the volume of it. It seems out of place with the rest of the sounds / music. Thanks and Merry Christmas!

P.S. Any chance of a Dr Mario emulator for next Christmas? :)
40crisis
Drutt
Posts: 8
Joined: Fri Dec 04, 2020 6:30 am

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by 40crisis »

bob_fossil wrote: Fri Dec 25, 2020 11:55 am Got this working after a bit of fiddling about with the .bat file as I'm on Linux. Very impressive but could you turn off the tone that plays when you rotate a piece or reduce the volume of it. It seems out of place with the rest of the sounds / music. Thanks and Merry Christmas!

P.S. Any chance of a Dr Mario emulator for next Christmas? :)
Hello,

for altering sound volume look for the following hex pattern in core.bin or corediv.bin files:

gb sound channel 1
0E,0A,3E,08 change 08 with value from 00 to 0F

gb sound channel 2
0E,0A,3E,09 change 09 with value from 00 to 0F

gb sound channel 3
0E,0A,3E,0A change second 0A with value from 00 to 0F

gb sound channel 4
,3E,0A,0E,0A change first 0A with value from 00 to 0F

Sorry, no chance for a Dr Mario emulator ;)
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by Jbizzel »

Can you play this on a real spectrum? Forgive me, I'm not sure what this is.
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2641
Joined: Mon Nov 13, 2017 3:16 pm

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by Ast A. Moore »

Jbizzel wrote: Sat Dec 26, 2020 4:46 pm Can you play this on a real spectrum? Forgive me, I'm not sure what this is.
Pretty sure you can. I can’t verify this particular game, because I can run that BAT file on macOS, but it looks like it uses the original Tetris ROM. If that’s the case, then the port takes advantage of a special RAM addressing mode—available only on a +2A/+3—which maps RAM banks to address $0000–$3fff. This was originally designed for running CP/M on the Spectrum, if memory serves, but since most Z80-based arcade cabinets used the same address space for their game proper, it makes it much easier to port these games using the +2A/+3s special addressing mode. You still need to code your own graphics environment, controls, etc., but the original game logic can be left (mostly) untouched.
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
User avatar
ZXDunny
Manic Miner
Posts: 498
Joined: Tue Nov 14, 2017 3:45 pm

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by ZXDunny »

Ast A. Moore wrote: Sat Dec 26, 2020 5:45 pm
Jbizzel wrote: Sat Dec 26, 2020 4:46 pm Can you play this on a real spectrum? Forgive me, I'm not sure what this is.
Pretty sure you can. I can’t verify this particular game, because I can run that BAT file on macOS, but it looks like it uses the original Tetris ROM. If that’s the case, then the port takes advantage of a special RAM addressing mode—available only on a +2A/+3—which maps RAM banks to address $0000–$3fff. This was originally designed for running CP/M on the Spectrum, if memory serves, but since most Z80-based arcade cabinets used the same address space for their game proper, it makes it much easier to port these games using the +2A/+3s special addressing mode. You still need to code your own graphics environment, controls, etc., but the original game logic can be left (mostly) untouched.
Exactly right. c.f, Simon Owen's Pacman arcade ROM running on the +2a/+3 which pioneered the idea. Arcade perfect Speccy games? Perfect.
User avatar
emook
Drutt
Posts: 36
Joined: Mon Nov 13, 2017 1:04 pm
Location: Manchester, England
Contact:

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by emook »

Impressive stuff, temu.tap works on my Next.
User avatar
Ivanzx
Manic Miner
Posts: 736
Joined: Tue Nov 14, 2017 9:51 am

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by Ivanzx »

Thanks! This is really impressive and I still wonder how, for example, the music was automatically converted to the AY of the Spectrum? :o

How do you check what games can fit in the Spectrum from other systems? Which ones are next on your list? :)
Swainy
Manic Miner
Posts: 237
Joined: Mon Nov 13, 2017 8:10 pm

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by Swainy »

Works nicely on the Next.

Image
40crisis
Drutt
Posts: 8
Joined: Fri Dec 04, 2020 6:30 am

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by 40crisis »

Ivanzx wrote: Wed Dec 30, 2020 4:18 pm Thanks! This is really impressive and I still wonder how, for example, the music was automatically converted to the AY of the Spectrum? :o

How do you check what games can fit in the Spectrum from other systems? Which ones are next on your list? :)
The sound emulation is very basic only based on frequency converted from gb to zx.
Some people are complaining about it.
The process to choose an emulation project for the zx, first the processor should be a z80 or very close to it (for instance the gb)
We don't have enough ressource to emulate other kind of processor.
Then studying the specs of the machine to emulate and of course some knowledge of the game operatings.
As my targets are Amstrad CPC or Sinclair Zx Spectrum with no hardware acceleration, the candidates are usually simple and old games.

For my next project, I would like to try to emulate a vector game.
40crisis
Drutt
Posts: 8
Joined: Fri Dec 04, 2020 6:30 am

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by 40crisis »

Swainy wrote: Wed Dec 30, 2020 7:26 pm Works nicely on the Next.

Image
Glad to see it works on a next machine.
I don't even own a spectrum +2A / +2B / 3 machine to run it :mrgreen:
Swainy
Manic Miner
Posts: 237
Joined: Mon Nov 13, 2017 8:10 pm

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by Swainy »

40crisis wrote: Wed Dec 30, 2020 9:26 pm
Swainy wrote: Wed Dec 30, 2020 7:26 pm Works nicely on the Next.

Image
Glad to see it works on a next machine.
I don't even own a spectrum +2A / +2B / 3 machine to run it :mrgreen:
Now that is dedication!
+3code

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by +3code »

Wow, plays really fantastic. Perhaps this and Owen's titles must be listed here: https://spectrumcomputing.co.uk/list?genre=Emulator
User avatar
Jbizzel
Dynamite Dan
Posts: 1537
Joined: Mon May 04, 2020 4:34 pm
Location: Hull
Contact:

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by Jbizzel »

ok, just made the tap and tried this.

it has blown my tiny mind to bits. this is amazing.

when's Pokémon coming out???? :D :D :D :D :D
Swainy
Manic Miner
Posts: 237
Joined: Mon Nov 13, 2017 8:10 pm

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by Swainy »

I want the Gameboy version of Robocop :)
40crisis
Drutt
Posts: 8
Joined: Fri Dec 04, 2020 6:30 am

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by 40crisis »

User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by pavero »

40crisis wrote: Sat Jan 02, 2021 9:53 am New download link:
https://www.sendspace.com/file/l1ecvw
The link doesn't work.
XoRRoX
Manic Miner
Posts: 233
Joined: Wed Jul 11, 2018 6:34 am

Re: GB Tetris Emulator TEMU For Sinclair Zx Spectrum +2A +3

Post by XoRRoX »

I'd like to have a go too. Could you please provide a new download link?
Perhaps upload it to the ZXDB?
Post Reply