Author Topic: The Z80's secret feature discovered after 40 years!  (Read 6912 times)

0 Members and 1 Guest are viewing this topic.

Offline Alex EisenhutTopic starter

  • Super Contributor
  • ***
  • Posts: 3339
  • Country: ca
  • Place text here.
The Z80's secret feature discovered after 40 years!
« on: October 16, 2022, 03:47:14 pm »
Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 
The following users thanked this post: Kean, ledtester

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14487
  • Country: fr
Re: The Z80's secret feature discovered after 40 years!
« Reply #1 on: October 16, 2022, 06:45:30 pm »
Just happened to watch this a couple hours ago. Guess we get some similar suggestions.

Note that (as almost always with YT videos), the title is a clickbait. There is no secret feature discovered after 40 years.

 
The following users thanked this post: Ed.Kloonk, edavid

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: The Z80's secret feature discovered after 40 years!
« Reply #2 on: October 16, 2022, 07:11:48 pm »
Yet another example why I avoid yootoob vids.

Remind me never to look at another vid you suggest.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 
The following users thanked this post: albert22

Offline MikeK

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: The Z80's secret feature discovered after 40 years!
« Reply #3 on: October 16, 2022, 07:22:40 pm »
Just how old is the video author?...Why would a child know anything secret about the Z80?  More like their typical M.O. ...lie and brag.
 

Offline DiTBho

  • Super Contributor
  • ***
  • Posts: 3915
  • Country: gb
Re: The Z80's secret feature discovered after 40 years!
« Reply #4 on: October 16, 2022, 07:43:02 pm »
Yet another example why I avoid yootoob vids.

Remind me never to look at another vid you suggest.

YouTube ... Clickbait. Well, that's depressing
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline DiTBho

  • Super Contributor
  • ***
  • Posts: 3915
  • Country: gb
Re: The Z80's secret feature discovered after 40 years!
« Reply #5 on: October 16, 2022, 07:44:09 pm »
Ania commented "YouTube is not science"  :=\
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14487
  • Country: fr
Re: The Z80's secret feature discovered after 40 years!
« Reply #6 on: October 16, 2022, 07:52:04 pm »
Well, not to say that the video is not interesting though. Just that the title is a clickbait.

Problem is, YT *does* promote those clickbait titles. That's how it works. If, as a youtuber, you don't follow the "rules", your channel will go down the drain.
Blame YT, but not only. Blame the masses of viewers who consistently fall for that.
 

Offline Tom45

  • Frequent Contributor
  • **
  • Posts: 556
  • Country: us
Re: The Z80's secret feature discovered after 40 years!
« Reply #7 on: October 16, 2022, 08:03:04 pm »
I recently watched a video on the Russian Mig-31.

In the video he said that he included "Intercepting the SR-71" in the video's title to attract more viewers.
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #8 on: October 16, 2022, 08:03:09 pm »
Not a clickbait title, it's a lying title.

To spare others' time, no Z80 secret feature was discovered.  He wants to emulate protected mode in software, after adding some external hardware, then starts to fantasize about generic advantages of protected mode as if Z80 would have such a mode, except Z80 doesn't have any hidden protected mode feature.
 
The following users thanked this post: amyk, ebastler

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: The Z80's secret feature discovered after 40 years!
« Reply #9 on: October 16, 2022, 08:25:34 pm »
Not a clickbait title, it's a lying title.

To spare others' time, no Z80 secret feature was discovered.  He wants to emulate protected mode in software, after adding some external hardware, then starts to fantasize about generic advantages of protected mode as if Z80 would have such a mode, except Z80 doesn't have any hidden protected mode feature.

Yup.

The ignoramus also made a comment that you couldn't have a preemptive operating system without protected mode.

Oh yes you can, and on a Z80 too.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Alex EisenhutTopic starter

  • Super Contributor
  • ***
  • Posts: 3339
  • Country: ca
  • Place text here.
Re: The Z80's secret feature discovered after 40 years!
« Reply #10 on: October 19, 2022, 12:12:32 pm »
Yeesh ok so bad call, I got clickbaited!
Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 3711
  • Country: nl
Re: The Z80's secret feature discovered after 40 years!
« Reply #11 on: October 19, 2022, 12:37:27 pm »
And it took you three days to realize it :-DD

Offline TomS_

  • Frequent Contributor
  • **
  • Posts: 834
  • Country: gb
Re: The Z80's secret feature discovered after 40 years!
« Reply #12 on: October 20, 2022, 08:15:37 pm »
I despise such videos/tactics and avoid them, and only watched this due to a few others I know commenting about it.

But if you watch to the end he does at least admit that the title is click bait.

But of course, you have to watch essentially the entire video to get to that point, which means feeding the algorithm.

It's a neat trick, but certainly *not* a Z80 "feature".
 

Offline M0HZH

  • Regular Contributor
  • *
  • Posts: 206
  • Country: gb
    • QRPblog
Re: The Z80's secret feature discovered after 40 years!
« Reply #13 on: October 20, 2022, 09:07:20 pm »
Well, not to say that the video is not interesting though. Just that the title is a clickbait.

Problem is, YT *does* promote those clickbait titles. That's how it works. If, as a youtuber, you don't follow the "rules", your channel will go down the drain.
Blame YT, but not only. Blame the masses of viewers who consistently fall for that.

There are tons of channels that don't use clickbait and are very succesful, probably they know some sort of secret recipe like actually creating valuable content, who knows :).

1619077-0
« Last Edit: October 20, 2022, 09:09:30 pm by M0HZH »
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14487
  • Country: fr
Re: The Z80's secret feature discovered after 40 years!
« Reply #14 on: October 28, 2022, 11:11:29 pm »
Really? Please show us "very successful" YT channels that don't use those gross marketing techniques. They all do, and that's because that's how it works. There's no way around it. That's digital marketing. Sure some may be more subtle about it than others, but they still use the same techniques. That doesn't mean they have bad content. Even with the best of contents, you need this adapted marketing. If you don't like it, don't be on YT. And there can be a fine line between lies, exaggerations and overstatements. That's marketing in all its glory.

Oh, and while I was even the first here to point out the clickbaity title, I'm pretty amazed about the reactions that some people had in this thread about this video. Good lord. Yes the title was a clickbait, yes the guy made a few gross overstatements in his video, but it was still not a bad video per se, it was not uninteresting, and it was kind of entertaining if you like vintage stuff and the Z80 in particular.

So I don't think it has gotten a fair treatment here. Reporting it? Wow. Leaving a comment would have been enough.
 
The following users thanked this post: Kean

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #15 on: October 28, 2022, 11:52:23 pm »
Any of the Brady Haran's YT channels?
 
The following users thanked this post: Excavatoree, NF6X

Offline Phil_G

  • Regular Contributor
  • *
  • Posts: 71
  • Country: gb
  • G4PHL
Re: The Z80's secret feature discovered after 40 years!
« Reply #16 on: October 29, 2022, 12:13:29 am »
Really? Please show us "very successful" YT channels that don't use those gross marketing techniques. They all do, and that's because that's how it works. There's no way around it. That's digital marketing.
I think you're doing many Youtube contributors a disservice by making the common assumption that everyone who runs a YT channel does it to make money.  The less greedy among us just find it a convenient video platform. There are many YT channels which I would consider 'very successful' in achieving their intent, without making a penny. I dont care a jot how the algorithm rates my own vids because none of the content is monetized. I dont care how many likes or views or subscribers I get.  Surely you'd agree that YT has practical value, beyond the financial?  Many enthusiasts use YT as a vlog or diary platform. To say that successful (adjective, accomplishing a desired aim or result) Youtube contributors "must use gross marketing techniques", "they all do" and "theres no way around it" and that otherwise "your channel will go down the drain" is not universally true.. 
Sorry for the rant but it disappoints me that avarice is considered normal and to be expected  :)
Cheers
Phil
« Last Edit: October 29, 2022, 12:20:29 am by Phil_G »
 
The following users thanked this post: MK14

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8276
 
The following users thanked this post: RoGeorge

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #18 on: October 29, 2022, 08:50:54 am »

Offline wraper

  • Supporter
  • ****
  • Posts: 16866
  • Country: lv
Re: The Z80's secret feature discovered after 40 years!
« Reply #19 on: October 29, 2022, 08:54:12 am »
More secret features that will make you cringe

 
The following users thanked this post: RoGeorge, pcprogrammer

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 3711
  • Country: nl
Re: The Z80's secret feature discovered after 40 years!
« Reply #20 on: October 29, 2022, 09:21:48 am »
More secret features that will make you cringe

 :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #21 on: October 29, 2022, 09:45:07 am »
Maybe the word "features" doesn't fit there, I'll read that rather as "tricks".

Though, using copper wire makes a better soldering tip than any other material.  With time, copper will dissolve in solder, but it's virtually free to replace it with another piece of wire.  It will solder better than any monocartridge $50/piece top brands soldering tips.  Also, shaping a copper wire to desolder many points at once works very well, too, often better than a desoldering station.  Seems like good and practical tricks to me, subscribed, thanks!  :D

Offline wraper

  • Supporter
  • ****
  • Posts: 16866
  • Country: lv
Re: The Z80's secret feature discovered after 40 years!
« Reply #22 on: October 29, 2022, 10:01:37 am »
Maybe the word "features" doesn't fit there, I'll read that rather as "tricks".

Though, using copper wire makes a better soldering tip than any other material.  With time, copper will dissolve in solder, but it's virtually free to replace it with another piece of wire.  It will solder better than any monocartridge $50/piece top brands soldering tips.  Also, shaping a copper wire to desolder many points at once works very well, too, often better than a desoldering station.  Seems like good and practical tricks to me, subscribed, thanks!  :D
Making a tip which cannot touch the joint, and forces you to apply solder to the tip, not joint. Will beat any $5 soldering iron at sucking at doing its job. Tip does not fit shape of the hole, thus heater will have local overheating and heat transfer will be poor. Not to say original tip was made out of copper too with some thin plating. The only somewhat useful trick was with lighter (if you don't have soldering iron) but you don't need to flatten the solder. Many of those "secret features" may look nice on a first glance, but most of them are just useless garbage or totally fake.
« Last Edit: October 29, 2022, 10:05:01 am by wraper »
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #23 on: October 29, 2022, 10:39:33 am »
I agree, the soldering techniques might not be the best ones.  The first solder looks better than the "recommended" second one, then later I think I've spotted a cold joint, applying soldering to the tip might make sense only when desoldering, and so on, but anyways, the tricks shown in that channel seemed more practical than the usual life-hacks videos I've seen before, that's why I clicked subscribe, for the hacks, not for soldering advice.

About the copper wire as a soldering tip, in my experience plain copper was always better than any coated soldering tips.  And they give peace of mind about not mixing Pb and Pb free, they don't need special re-tinning paste once in while, no need to religiously put fresh solder on a tip at the end of a soldering session, and so on.
- Particularly well suited for heavy soldering on big joints or ground planes.
- Could be used as an improvised micro soldering tip, too, by coiling a few turns of thin copper (AWG24, stripped from LAN cables) on a thick, plain-copper tip.

That's how I've soldered this:

without a $1k+ JBC micro soldering station.  :D
« Last Edit: October 29, 2022, 10:59:34 am by RoGeorge »
 
The following users thanked this post: DavidAlfa

Offline wraper

  • Supporter
  • ****
  • Posts: 16866
  • Country: lv
Re: The Z80's secret feature discovered after 40 years!
« Reply #24 on: October 29, 2022, 10:54:18 am »
Those cheap tips are just copper (or brass if total garbage) with a thin nickel plating, or something like that. So you need to grind that plating off for it to attract copper. Not like that plating will last long anyway. Not a proper iron plated copper tip all decent soldering irons have.
Quote
About the copper wire as a soldering tip, in my experience plain copper was always better than any coated soldering tips.  And they give peace of mind about not mixing Pb and Pb free, they don't need special re-tinning paste once in while, no need to religiously put fresh solder on a tip at the end of a soldering session, and so on.
Then just put a copper rod of appropriate diameter instead of original tip, not that folded garbage.
« Last Edit: October 29, 2022, 10:56:48 am by wraper »
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #25 on: October 29, 2022, 04:12:32 pm »
You are right again, a copper rod works even better.

First thing I do after fitting a new folded wire is to snip it in half.  Then twist the two parts together.  A proper diameter copper rod might be hard to find, while thick solid copper is easy to get.  I use leftovers from mains wiring.

For example, this Z80 system I designed in the late 80s was soldered using twisted copper wire as a soldering tip, and a very powerful soldering gun of (100-200W and no temperature control):






https://hackaday.io/project/1411-xor-hobby-a-vintage-z80-computer-prototype

The wrapping wire was soldered instead of wrapped, and that type of wire was covered in something that couldn't stand the hit, so I've start soldering "through" the plastic, without stripping or even cutting the wire.  Not exactly the best soldering practices.  Though, last time I've powered it, it was still working.  That was about 30+ years later after soldering through the cover of unstripped wrapping wire.

It was stupid, but it works.  ;D
« Last Edit: October 29, 2022, 04:15:19 pm by RoGeorge »
 
The following users thanked this post: helius

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: The Z80's secret feature discovered after 40 years!
« Reply #26 on: October 29, 2022, 08:09:27 pm »
Definitley, you don't need $1K equimement, it's a lot more the skill than the machine.
When I was younger and poorer I only had the typical 30W unregulated pen-style JBC soldering iron. Yet  I soldered a ton of tqfp and all kind of small stuff.
This is an old picture on the OpenWRt forum, made by me.
Wanted USB, the router didn't have, but the soc did. So I had to become creative.
Why the scratching? Well, the AR9331 uses a weird package (Dual-row LPCC whatever) where one row will be hidden under the package.
Pins on each row are separated by 0.5mm, then both rows are routed together to the top layer, so those wires are 0.25mm apart from each other!




« Last Edit: October 29, 2022, 08:14:42 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: RoGeorge, Exosia, zrq

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #27 on: October 29, 2022, 08:31:14 pm »
That's very hardcore!  :-+

Offline wraper

  • Supporter
  • ****
  • Posts: 16866
  • Country: lv
Re: The Z80's secret feature discovered after 40 years!
« Reply #28 on: October 29, 2022, 08:44:52 pm »
Watch this pron. In Russian but video shows it all. A 8 minutes you can see spiderweb.
 
The following users thanked this post: DavidAlfa

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #29 on: October 29, 2022, 09:08:14 pm »
Wow!  :o
 
The following users thanked this post: RichardS

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: The Z80's secret feature discovered after 40 years!
« Reply #30 on: October 29, 2022, 09:37:28 pm »
Someone had a lot of free time! :D
What the hell happened to that card? Got ran-over by a train?
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6204
  • Country: ro
Re: The Z80's secret feature discovered after 40 years!
« Reply #31 on: October 29, 2022, 10:30:51 pm »
I guess a short circuit in the original voltage stabilizer heated to hot red and carbonized the PCB.
Or maybe the board was shot by a bullet.  :-//

Offline wraper

  • Supporter
  • ****
  • Posts: 16866
  • Country: lv
Re: The Z80's secret feature discovered after 40 years!
« Reply #32 on: October 30, 2022, 08:59:44 am »
Faulty buck converter burned the PCB. Someone removed PCB material before he received this board. He joked that it was given to beavers for fixing.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: The Z80's secret feature discovered after 40 years!
« Reply #33 on: October 30, 2022, 09:13:59 am »
He was lucky to have the pcb files, otherwise it'd be unfixable.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16866
  • Country: lv
Re: The Z80's secret feature discovered after 40 years!
« Reply #34 on: October 30, 2022, 09:20:56 am »
He was lucky to have the pcb files, otherwise it'd be unfixable.
He had a boardview for a similar board but not this one. So needed to figure out where traces by going over components/pads with copper braid to find continuity.
« Last Edit: October 30, 2022, 12:17:10 pm by wraper »
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3387
  • Country: ua
Re: The Z80's secret feature discovered after 40 years!
« Reply #35 on: November 24, 2023, 04:08:54 pm »
Z80 really has some secrets which are discovered after 40 years, this is how some instructions affecting undocumented flags. Z80 has internal register which is updated on some instructions and undocumented flags are set depending on that hidden register. :)
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4790
  • Country: pm
  • It's important to try new things..
Re: The Z80's secret feature discovered after 40 years!
« Reply #36 on: November 24, 2023, 06:05:50 pm »
Those "hidden features/instructions" in the chips from 70/80ties are remnants of the design/testing/verification practices from that era. The focus was on the intended functionality only, their tools were simple (pencil and paper), they worked under time stress, etc., and when something toggled somewhere on the chip without an impact on the given specification they did not care much about it.
A complete test of all the stuff on the chip is not possible even today..
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3387
  • Country: ua
Re: The Z80's secret feature discovered after 40 years!
« Reply #37 on: November 26, 2023, 01:28:56 pm »
A complete test of all the stuff on the chip is not possible even today..

Do you know some feature of Z80 which is not implemented in modern emulators (which implements latest finding on MEMPTR register and all other undocumented features)?

As I know Z80 die were scanned layer-by-layer on electronic microscope, it's schematic was reverse engineered and all its undocumented features were explained.

There are several clones of Z80 with a little different behavior, for example OUT (C),0 can lead to write #FF on some clones.

Here is picture of Z80 die: https://s.zeptobars.com/z80-Z0840004PSC-HD.jpg

Here is some details on how its registers are implemented: https://www.righto.com/2014/10/how-z80s-registers-are-implemented-down.html

What secret is still not reversed is FD1793. As I know some attempts to reverse engineering were made, it has some firmware inside. But there is still no full emulators for that chip. Here is a die photo of Russian clone 1818ВГ93: https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Kr1818vg93-3-HD.jpg/800px-Kr1818vg93-3-HD.jpg
You can identify internal ROM with firmware on the left top side. But I never seen that firmware content and it's description on internet. If someone have it, please let me know.
« Last Edit: November 26, 2023, 01:55:20 pm by radiolistener »
 

Offline MarkT

  • Frequent Contributor
  • **
  • Posts: 367
  • Country: gb
Re: The Z80's secret feature discovered after 40 years!
« Reply #38 on: December 10, 2023, 11:59:15 am »
I thought the fairly well known obscure undocumented Z80 feature was that the two bytes of the IX and IY registers can be addressed individually like HL by adding DD or FD prefix before H and L referencing opcodes, or something like that - basically the DD and FD prefixes just alter the meaning of "HL", "H" and "L".  Never thought to try DD FD as a prefix though, suspect the last one wins.

Whoops, still able to remember many Z80 opcodes decades after programming it.  I blame the Sargon chess book that had a machine-code listing you could enter into your Z80 system of choice!!  Still have the MOSTEK Z80 manual somewhere...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf