H4th inverse character bug cured by Andy's ULA

Discussions about Sinclair ZX80 and ZX81 Hardware
Post Reply
Moggy
Posts: 1702
Joined: Wed Jun 18, 2008 2:00 pm

H4th inverse character bug cured by Andy's ULA

Post by Moggy » Wed Oct 10, 2018 11:37 pm

Minority interest I grant you but worth mentioning I feel.

Those of us who use h4th may have noticed that when using an inverse screen the furthest column to the right always remains "uninverted" (see Picture).

One idea put forward suggested a timing problem being that H4th seems to be a 50 hz clone of the American 60hz Pluri-forth by Tree software.

I always thought it to be a problem with ROM image we all seem to use being culled from Eighty One and that it was tweaked in some way as the emulator doesn't behave like real hardware video wise, but a forum member who has the genuine Skywave ROM posted pics showing it to behave in the same way so that put that to bed.

Long story short I put the new ULA in my forth zeddy to bring it up to scratch video wise with my others and yay all characters now inverted and no blank right hand column.

Happy days. :D
Attachments
h4th PAL.JPG

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

Re: H4th inverse character bug cured by Andy's ULA

Post by Andy Rea » Thu Oct 11, 2018 1:41 pm

Very odd indeed, has you an image of said ROM that I could play with myself? I would be interested to hook up the logic analyser and see what's going on.

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

Moggy
Posts: 1702
Joined: Wed Jun 18, 2008 2:00 pm

Re: H4th inverse character bug cured by Andy's ULA

Post by Moggy » Thu Oct 11, 2018 4:48 pm

Hi Andy.

The ROM can be found here...

viewtopic.php?f=3&t=2632&p=28741&hilit= ... bug#p28741


The only difference between this and the bugged h4th ROM found in Eighty One(still there) is a minor correction to a maths routine, the display routine is unaltered and with a standard ULA the image problem is still there but your ULA corrects it YAY!

It should be noted Eighty One doesn't exhibit the inverse display error so assume some trickery in said emulator to make it work or perhaps its' virtual ULA possesses the same spot on timing accuracy as your little marvel? :D

nollkolltroll
Posts: 246
Joined: Sat Sep 27, 2014 8:02 pm
Location: Stockholm, Sweden

Re: H4th inverse character bug cured by Andy's ULA

Post by nollkolltroll » Fri Oct 12, 2018 3:18 pm

I've seen this when using the ROM display driver and printing 34 characters without an ending halt-character. To my understanding, this is t unfortunately the behaviour of the original ULA hw that somehow ignores the invert-bit after only 2 pixels.
/Adam

Moggy
Posts: 1702
Joined: Wed Jun 18, 2008 2:00 pm

Re: H4th inverse character bug cured by Andy's ULA

Post by Moggy » Fri Oct 12, 2018 3:39 pm

This seems the most credible answer to this little puzzle, many thanks for that, Adam. :D

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

Re: H4th inverse character bug cured by Andy's ULA

Post by 1024MAK » Fri Oct 12, 2018 3:51 pm

Just a thought, was the h4th ROM originally written to run on a TS1500?

Only that machine has a Timex “ULA”.

Mark

nollkolltroll
Posts: 246
Joined: Sat Sep 27, 2014 8:02 pm
Location: Stockholm, Sweden

Re: H4th inverse character bug cured by Andy's ULA

Post by nollkolltroll » Fri Oct 12, 2018 4:14 pm

Interesting to know if the Timex ULA works differently in this regard. Anyone up for testing?
/Adam

Moggy
Posts: 1702
Joined: Wed Jun 18, 2008 2:00 pm

Re: H4th inverse character bug cured by Andy's ULA

Post by Moggy » Fri Oct 12, 2018 5:21 pm

1024MAK wrote:
Fri Oct 12, 2018 3:51 pm
Just a thought, was the h4th ROM originally written to run on a TS1500?

Only that machine has a Timex “ULA”.

Mark

No the original EPROM based software was originally called Multi-Forth ,then changed to Pluri-Forth, by Tree systems, Grand Rapids Michigan, for the ZX81 and TS1000.
The original copyright message being, "FORTH-TS2.0 BY TREE SYSTEMS"
H4th seems to be a later adaptation(with a maths bug not found in the US version) for UK/European use.

The H4th manual states H4th is based on Bob Alsum's Tree-Forth for Tree-Systems which was either a renamed Pluri-Forth or a misinterpretation by Skywave as to the correct name though will stand correction if others know different.

An interesting thing about the original US version for the TS1000 is that the circuit board had two sockets , one for the 2764 Forth chip and the other for the original ROM, switching being done via connections to the TV channel switch.

Skywave intended a similar style board to house a mooted but unrealised floating point unit as well as the original ROM, but I'm certain this never saw the light of day.

Post Reply