Need for speed - the ROM-patches

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
User avatar
sirmorris
Posts: 2652
Joined: Thu May 08, 2008 4:45 pm
Location: oxon, uk

Re: Need for speed - the ROM-patches

Post by sirmorris » Wed Sep 26, 2012 8:00 pm

You bluddy genius :)

Can't wait to see it in the flesh!
--=== ZXpand+ ... A more moderner all-in-one upgrade solution for ZX81 ===--
* SD/MMC storage * 32K Hires-capable RAM * AY sound chip * Joystick port * Serial *
* BASIC enhancements - plug & play * Reset button * Auto-boot facility *

User avatar
Andy Rea
Posts: 1263
Joined: Fri May 09, 2008 1:48 pm
Location: notts UK

Re: Need for speed - the ROM-patches

Post by Andy Rea » Wed Sep 26, 2012 10:04 pm

Just tried with the SG81_b.rom CLCKFREQ.P now takes 202 frames !

Andy
6 x ZX81, 1 x TS1500 , 1 x +3e, 1 x timex 2040 printer, 1 x timex 2020 cassette deck, siclair printer and some spectrum

User avatar
Paul
Posts: 859
Joined: Thu May 27, 2010 7:15 am
Location: Germanys west end

Re: Need for speed - the ROM-patches

Post by Paul » Thu Sep 27, 2012 6:35 am

Andy Rea wrote:Yes !!!! I've done it... 20Mhz :D
Incredible! Unbelievable! I am lacking words (in english tounge) to express my absolute enthusiasm about what you achieved!
Does this have any chance to run on a Sinclair mainboard? If not, is someone going to design a motherboard for this?

I happen to have a 20mhz Z80 in my toolbox, as well as fast RAM. What are you using as a ROM?
I would love to buy a 40MHz ULA for running my Zeddy in 20 MHz :ugeek: You quote a price. When will it be ready?
In theory, there is no difference between theory and practice. But, in practice, there is.

User avatar
Andy Rea
Posts: 1263
Joined: Fri May 09, 2008 1:48 pm
Location: notts UK

Re: Need for speed - the ROM-patches

Post by Andy Rea » Thu Sep 27, 2012 5:32 pm

Hi Paul, you could if your willing to make several modifications to the issue 1 board make it work, as for the ULA/other logic trickry prepare for soldering lots of wires...

To run at 20Mhz, the ROM is copied to RAM and then RAM occupies the 0-8K, in fact RAM can occupy all 64K, i have 128K with 8K pages, 16-48K always uses pages 2,3,4,5. 0-8K, 8-16K can be freely assigned any of the 16 pages, also when ram occupies 0-8K it is write protected, but you can still modify it if you really want to, just use the same page in a different memory space (you can have a single page appear in more than 1 memory space) and modify it there...

48-64K when M1 is active (video) then pages 2,3 are used, when M1 is not active you can assign any page.

ultimately i'd like to include a single AY PSG, and with the Expertise of The Mighty SirMorris A ZXpand-a-like SD slot (some difference may be un-avoidable, E.G memory mapping will no longer be controlled by the CONFIG command.)

I'd like to make a PCB, but that is something for the future.

Regards Andy
6 x ZX81, 1 x TS1500 , 1 x +3e, 1 x timex 2040 printer, 1 x timex 2020 cassette deck, siclair printer and some spectrum

User avatar
zsolt
Posts: 153
Joined: Wed Apr 20, 2011 10:43 am
Location: Fót, Hungary

Re: Need for speed - the ROM-patches

Post by zsolt » Thu Sep 27, 2012 7:53 pm

That's great! :D
Congrats,
Zsolt

User avatar
siggi
Posts: 752
Joined: Thu May 08, 2008 8:30 am
Location: Dauernheim, Germany
Contact:

Re: Need for speed - the ROM-patches

Post by siggi » Thu Sep 27, 2012 9:08 pm

Great work Andy!
Andy Rea wrote: ultimately i'd like to include a single AY PSG, and with the Expertise of The Mighty SirMorris A ZXpand-a-like SD slot
That would probably be a SPI interface and 1 (or better 2) /cardselect signals. That could also be used for MEFISDOS mmc cards :mrgreen:

Siggi
My ZX81 web-server: online since 2007
http://zx81-siggi.endoftheinternet.org/index.html

User avatar
yerzmyey
Posts: 1227
Joined: Thu May 15, 2008 9:11 am
Location: Rubber Planet
Contact:

Re: Need for speed - the ROM-patches

Post by yerzmyey » Fri Sep 28, 2012 12:09 am

You know what I would like to see? ;)
A demo using a full power of 20Mhz ZX81. I think it would be a killer. :)
"FERENGI" - an arcade game for ZX81: http://tiny.pl/hp3bq
"MONOCHROME" issue 5 (Spring 2014) - a free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX-81/TS1000/TS1500 COMPETITIONS 2007/2009: http://zx81.republika.pl/

User avatar
1024MAK
Posts: 1764
Joined: Mon Sep 26, 2011 9:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Need for speed - the ROM-patches

Post by 1024MAK » Fri Sep 28, 2012 1:16 am

Andy Rea wrote:Hi Paul, you could if your willing to make several modifications to the issue 1 board make it work, as for the ULA/other logic trickry prepare for soldering lots of wires...

To run at 20Mhz, the ROM is copied to RAM and then RAM occupies the 0-8K, in fact RAM can occupy all 64K, i have 128K with 8K pages, 16-48K always uses pages 2,3,4,5. 0-8K, 8-16K can be freely assigned any of the 16 pages, also when ram occupies 0-8K it is write protected, but you can still modify it if you really want to, just use the same page in a different memory space (you can have a single page appear in more than 1 memory space) and modify it there...

48-64K when M1 is active (video) then pages 2,3 are used, when M1 is not active you can assign any page.
So I presume that a latch/register is used to control the bank switching. Is this part of the "40MHz" ULA or separate? If separate, which type are you using? And at what I/O address is it at?
I also presume that on power-up, a slower clock rate is active and the ROM is selected. Code then copies the ROM code to the RAM bank that can (after the copy completes) be switched in to the 0k to 8k of the memory map. Then presumably, a write is made to a memory address and the Zeddy then runs at 20MHz... 8-)

Well, I have an issue one PCB, a 20MHz Z80 and a fast SRAM chip (and lots of wire and solder...). So as Paul says, "You quote a price. When will it be ready?"

Mark

User avatar
Paul
Posts: 859
Joined: Thu May 27, 2010 7:15 am
Location: Germanys west end

Re: Need for speed - the ROM-patches

Post by Paul » Fri Sep 28, 2012 6:59 am

Andy Rea wrote:To run at 20Mhz, the ROM is copied to RAM and then RAM occupies the 0-8K
At the moment I am (still) experimenting with the STK16C88 Auto Store 32K RAM which is 25ns fast. It is in my (extended, zero insertion force) ROM Socket.
I want to do banking as well and when in 0-8K its write Protected, if it is also (same bank twice) in 8-16k you can modify it ;)
But we should put this in a different thread. I just wanted to state there are fast options without copying the rom on every start... (and thus a mode skipping the copying would be fine ;) )
In theory, there is no difference between theory and practice. But, in practice, there is.

User avatar
Andy Rea
Posts: 1263
Joined: Fri May 09, 2008 1:48 pm
Location: notts UK

Re: Need for speed - the ROM-patches

Post by Andy Rea » Sat Sep 29, 2012 1:48 pm

CLCKFREQ.P new record (for me anyway)

frames taken: 194
speed 960.3%
freq 7.68Mhz

this is 20Mhz turbo mode, Wilf's Why wait circuit (coded in the CPLD), and the SG81_b rom as posted by Zsolt.

now then.... how do i get to 1000%...

Regards Andy
6 x ZX81, 1 x TS1500 , 1 x +3e, 1 x timex 2040 printer, 1 x timex 2020 cassette deck, siclair printer and some spectrum

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest