Zilog (re-)introduces the Z80 237
The Finn writes "Zilog has introduced an update to their now infamous Z80 line of processors. The new eZ80 ``[...]is one of the fastest 8-bit CPUs available today, executing code 4 times faster than a standard Z80 operating at the same clock speed.'' The last Z80-based computer I actually used for any length of time was a Xerox 820-II CP/M box, but the Z80 continues to live on in all kinds of embedded applications. "
Re:cool! i want one (Score:2)
Adam Berlinsky-Schine [mailto]
MC68000 is 32 bit. (Score:2)
Re:They were prepared for it... (Score:1)
Of course, it all balanced out, since the 6502 needed 2-4 times as many instructions to do anything...
Re:Can I upgrade my TRS-80 Model I? (Score:1)
Scott Adams On Line games (Score:1)
http://www.pcii.net/~msadams/
If you check out that page it includes links to playable versions for most platforms... including for a Palm Pilot *grin*
..... Now if I can just get out of this FunHouse
Learning assembly... (Score:1)
I learned on a 'Cosmac ELF II' with an 1802 processor. Yes, weird, limiting in many ways (multiply opcode? What multiply?!).
But it was small and easily understood. That helped with other processors, from 6502 to 8086 to 68hc11, and PIC and 8051... the only real trouble was getting used to being 'starved' for registers on some by comparison. But everything seemed to be a step up, otherwise.
Re:Oh waoo I learned ASSEMBLY on those puppies :-) (Score:1)
Agreed: I love the PIC series.
The conditional skips definitely lead to subtle code. For one thing, you can do interesting complex expressions with consecutive multiple conditional skip instructions.
Better, A lot of times you end up skipping over non-branch instructions and that idiom ends up being great for code that has to count clocks (wire protocols and the like), since the skipped instruction still takes a cycle to be skipped.
Sigh... :-)
--j
Re:NASCOM-1 (Score:1)
Re:Ah, the memories... (Score:1)
Usually what happens (with intel at least) is that they modify their old designs and make ``embedded'' versions of the chips in their older fabs. The company I work for (who shall remain nameless) uses the 80186 (no joke) and the i386EX (32-bit mode only 80386) in two of its products.
I still haven't learned assembly ;-) (Score:1)
I even got the Programmer's Guide from Toys R Us.
Only thing is, I never got C64Mon or any other assembly language monitor
And then last summer, I looked through the Programmer's Guide and realized they didn't tell you how to use floating-point arithmetic. So fractal programs with reasonable speed are out the window
I have used SPIM but not for anthing worthwile.
Probably right after... (Score:1)
Naturally it'll come in a choice of iMac inspired dayglo plastic packaging.
Re:Hidden instructions (Score:1)
Some Late night ponderings (Score:1)
I never thought then that I would be able to use those skills today (i.e. working algorithims in COMOS and perl etc...), but now I actually wish I had the time I had back then to really devote to learning what made that machine tick, and use that to learn what my servers today can do. I know I'm not the only one out there that feels that way, and for those of you who scoff at us "old farts" waxing nostalgic, trust me.... You can have your imaginations handed to you via GUI and imagery, some of us had to use our own visual imagery INSIDE, and between you and me, I kinda like mine more
Re:Infamous? (Score:1)
Nah, that was the 6809 you're thinking of. It actually had addressing modes that were worth something ... not like the PDP-11 (only applied to one operand) but it was easy to work with those.
- Jojo
Re:cool! i want one (Score:1)
Re:cool! i want one (Score:1)
Re:Nostalgic twinge (Score:1)
Ah, the Z80 (Score:2)
From the little Z8's to the z180's, et. al.
Those things are great. I have both a TI-85 and a TI-86. I was really happy to be able to recommend those great ZWorld [zworld.com] contollers at a job a while back. An absolute dream to work with. I recommend them all over the place now.
Man, they were pretty successful in milking them. I have their 1997 Master Selection Guide here and it's full of really neat app-specific chips for PDA's, set-top boxes, data communications, DSP (including voice), and so on.
Zilog were really smart with the Z80. Good for them. And they did it without all that shameless marketing certain-other-processor-companies are known for.
Re:cool! i want one (Score:2)
Adam Berlinsky-Schine [mailto]
Re:Long live the Z80 (Score:2)
For my money though, nothing beats an 8032 for a *simple* 8-bit embedded microcontroller. Named bits, quasi-bidirectional ports and a multiply and divide are just too useful, not to mention cycle counting is far easier.
Re:Oh waoo I learned ASSEMBLY on those puppies :-) (Score:3)
Ever seen PIC assembly? Some things are the same, but some of it is way off the beaten track.
There's an unconditional jump called GOTO.
There's no real conditional jump...
BTFSC/BTFSS - Bit Test F, Skip if Clear/Skip if Set. It basically skips the next line if a specific bit is clear or set. Make the next line a GOTO and you essentially have a conditional jump.
SWAPF - Swap nybbles in F. Interesting.... especially for a RISC chip...
If you're used to other architectures, the PIC looks, well, wierd. The first thing most people notice is the lack of instructions that begin with 'J'
Of course, the Z80 is great for getting into more "traditional" architechtures. Now with TI explicitly enabling asm programming on their calculators (without having to use memory dumps) a lot of young ones are delving right into it.
Re:Sinclair Spectrum, anyone (Score:1)
There was also an assembler/debugger/compiler suite from Ocean calld Laser Genius. I had Laser BASIC and the Laser BASIC compiler too, and the dreaded Artic FORTH.
Before that I had a ZX81 with an add-on keyboard, 16K RAM pack and a multi-tasking FORTH ROM by Skywave software. It was on a daughterboard with the BASIC ROM so you could power down and switch either ROM in and out.
I still have it in a cupboard in my parent's house. I would love to transfer that ROM code across onto a PC so I could run it in a ZX81 emulator.
The Z80 was way cool as a processor, so much easier to code for than the 6502 with its 256-byte stack, although it did have a "page 0" of quickly adressable RAM (ie the first 256 bytes) which almost made up for its poor register set.
Ah, those were the days. I wish I'd then bought a 68000 machine, but my dad wouldn't let me since they weren't "proper machines" becasue they didn't "run 1-2-3" (without an emulator).
Re:wordstar commands (Score:1)
Sinclair Spectrum, anyone (Score:1)
16k Pascal compiler (Hi-Soft) with integrated editor
21k C compiler
6K Lisp interpreter
5K Forth interpreter
People were careful with every bit those days.
I remember there was a group at the Cluj Computing Center in Romania, who had found something like 26 hidden, not documented but working instructions in the Z80. I wonder if eZ80 still has them.
Lotzi Boloni
Re:The 6502 was the standard for home computers. (Score:1)
z80!? (Score:4)
"The number of suckers born each minute doubles every 18 months."
Re:What you don't realize (Score:1)
Z80 - $2
RAM - $2
Glue logic - $2
ROM - $2
Board space - priceless, if your project must be small (hand-held), light (space), or both.
Furthur, if I already HAVE to have the FPGA for other reasons, incremental cost of the additional gates for the core is only a few dollars.
Did you use a Z80 today? (Score:1)
At last something for my TS-1000 to do. (Score:1)
Upgrade? (Score:2)
Better yet, will the embryos behind the counter at Radio Shack be able to tell me what a TRS-80 even is?
Inquiring minds want to know!
Re:Scott Adams On Line games (Score:1)
Re:Why Z80? (Score:1)
I still think that the BBC Micro was the best 6502 based machine available: tons of built in i/o, good graphics, a structured basic *with the assembler built in*.
Great games too: remember the original Elite?
dave "vdu 19,4,0,0,&ff"
Re:The TI graphing calculators run @ 6 Mhz (Score:1)
I don't play with my calc a lot anymore. My new toy is a 486 40MHz with 20MB RAM, 1.2GB root drive, and 250MB swap/boot/other drive, Cirrus Logic 1MB VGA primary display, Hercules (using mdacon module, will compile into next kernel) secondary/messages disp, running Slack 4.0. For some damned reason some of the smaller fonts don't work properly in XFree, using SVGA server. Show up as static unless I partially cover the line of text with another window, and then it's still not perfect but at least it's readable.
-- Matthew945@aol.blech.com [mailto]
(Remove that blech to mail me hateful 'off-topic' comments [or better yet help on my font problem] because I'm bored.)
Re:ZCPR, here we come! (Score:1)
cool! i want one (Score:2)
Seriously though, it does say it's code compatible with the original Z80. Would it be too hard for some calculator hackers to "upgrade" a graphing calculator?
Also, is the tcp/ip stack built into the chip? If so, could I browse the internet on my calc? You would just need a ppp implementation and a 9600 baud modem....
O/Cing the Z80 (Score:1)
More Resources @ http://www.ticalc.org
http://www.calc.org
http://www.ti-files.com(org?)
Usefull (Score:1)
Re:Z80 Emulators (Score:1)
Legos? (Score:2)
--
Re: Neo Geo sound quality (Score:1)
Crystal Ball (Score:4)
"Let's port Linux to it"
"Let's make a Beowulf cluster"
"I remember using a Z80...."
"My company is developing embedded software for Z80s...."
"Why? It's an 8-bit processor! Who uses that anymore?"
"First Post"
Re:In related news... afraid not (Score:1)
"The number of suckers born each minute doubles every 18 months."
Z80 Emulators (Score:3)
Eat 'em up!
Hidden instructions (Score:1)
Dirt cheap processing and ease of programming (Score:1)
Why use a RISC thing or 68k processor when this one gets the job done more efficiently and at a lower cost? Just because more powerful processors are out there doesn't mean we need to use them. This is the same reason why my coffeemaker doesn't have a pIII-500 in it.
With the rumors of the internet connected coffemakers, Zilog introducing a tcp/ip stack is a good move toward future embedded applications. This thing can probably easily be used in so called "internet appliances" at a very low cost and programmers don't have to learn a new instruction set.
Andrew, waiting patiently for the era of the TI calculator with a web browser
Z80 heaven - Disneyland (Score:1)
My dad has been making homebrew computers to do the oddest of things there (gate coutners, ride controls, parade timing synchs, anamatronic computers, audio control systems, fireworks launchers, the list is practically endless) for 25 years.
They work, they are cheap, they do the job, they don't run Windows. The new rides that crash (software... not hardware) a lot that were done by contractors (ie, Indiana Jones, etc) come down all the time because of the contractors insistance on using "I just got out of ITT Technical Insitute where i learned Visual Basic and now write software for Disneyland" Windows because all these goofballs think that the solution to everything is a PC with a x86, a Windows front end, and a serial port.
My dad's Fireworks launcher - Mickey's Match - ran for well over 15 years and it just worked. No GPFs, no BSOD's... it just launched fireworks.
___
"I know kung-fu."
The problem with a 386 or 486 in a tiny box is.. (Score:1)
Re:How about the MSX (Score:1)
The Z80 was cool because it had separate I/O and RAM addressing on separate busses.
;->
Groove-tastic, pop-pickers!
Re:Free Hardware Foundation , anyone? (Score:1)
Re:Gameboy != Z80 (Score:1)
work-alike. I/O and some of the registers are missing in both.
Four times as fast? (Score:1)
Re:Infamous? (Score:1)
Re:cool! i want one (Score:1)
z80 ramblings. (Score:2)
1) This paves the way for new texas instruments graphing calculators. (many run on z80s. it would be rather simple, according to zilog, to replace them with eZ80's.)
2) i think that there's money to be made in a z80 based business computer. you could make the hardware for real cheap, and then custom tailor an incredibly efficient operating system, and business apps. the Z80 is how many decades old? Z80 programmers know that chip incredibly well by now, so they can get their code as efficient as possible. if all of the hardware was uniform, (like playstations) you wouldn't need to bloat the o/s with support for obscure parts that almost nobody has. also, being that the o/s code is completely new, you wouldn't need legacy support! I'm telling you, Z80 computers, while not perfect for gaming, could be made to outrun a PIII running win98 any day in business apps. for much less!
Re:Some other fun machines (Score:1)
Actually the 1802 did have a stack, just not by default. In fact it could have several, implemented using one of the 16 fully general purpose regs. You could even choose your PC, or use several (that got hairy real quick!). That dam D register was a major bottleneck, tho!
sigh. I kinda miss my old Elf. Well...praps not that much. Miss my CoCos more!
--
If your map and the terrain differ,
trust the terrain.
Re:Infamous? (Score:1)
Sometimes beauty and elegance count for nothing. OS/9 was sort of nice too ... I mean the real one, not Apple's attempt to violate that trademark ("Mac" OS/9 indeed!).
Even when it was in active use, the 6809 never had much real marketing. Motorola's strength wasn't appropriate to the task of World Domination, I guess.
- Jojo
Re:cool! i want one (Score:1)
Re:Oh waoo I learned ASSEMBLY on those puppies :-) (Score:1)
Re:cool! i want one (Score:1)
Re:Ah, the Z80 (Score:2)
I never dealt with 232/485 on them so I can't comment on it.
I liked having the included source code, I changed a few things in there quite easily. Their tech support did things like email me code snippets.
The Dynamic C environment was really neat too. Costatements were pretty cool.
Of course, I used them strictly for process automation so I guess it's a "right tool for the job" kind of thing. I wouldn't exactly use them for vision systems or anything
You forgot one (Score:1)
Re:If I remember correctly... (Score:1)
Re:Infamous? (Score:1)
You got to be kidding. The Z80 is the only architecture that I would rank worse than the x86. Irregular registers, instructions that don't work well together (it's a pain to add an 8bit counter to a 16bit total), it's hard to put stuff into the index registers and using the index registers are incredibly slow, etc.
I'm really surprised that the Z80 is used as much in the embedded world as it is. While the transistor count of a Z80 might be small, now a days, that cost savings is going to be swamped by the cost of testing/packaging anyway.
PR == Pimping Rabidly (Score:1)
Zilog is a sad shell of its former self, having tried to diversify into DSPs and suchlike, but its a tough market and they don't have the volume.
This announcement is just another tired attempt to pimp their legacy product portfolio by sticking the work Internet in a press release and 'e' before the product name. Boy, It's not like their based-on-a-20-year-old-core Big Idea is even shipping yet, not until 2000.
... and the guy who said its cool because it is available in VHDL, unless you already have spare configurable logic in your design, the necessary gates are probably >10x the price of the silicon CPU.
Re:Oh waoo I learned ASSEMBLY on those puppies :-) (Score:1)
Also, 2 pass hand assembling becomes like a second nature
---
Re:cool! i want one (Score:1)
Adam Berlinsky-Schine [mailto]
Re:cool! i want one (Score:1)
And I do like they keyboards on the HP's better than the TI's. Something about the clickiness.
nathan
Re:z80!? (Score:1)
Whoops, the 8088 was an incremental de-evolution of the 8086, a new chip that maintained *assembly* source compatibility, not object code compatibility, with the 8080.
The whole family, and the special-register architecture is diseased. Thankfully, the Merced will deviate from this.
-John
Re:Silly Slashdotters... The Z80 lives on.. (Score:1)
A friend of mine programs autopilot systems for Honeywell. I believe he said when he first started working for them about 6-7 years ago, they were using z80s for the embedded cpu's for flight control systems for several different types of aircraft.
Re:Ah, the memories... (Score:1)
Yeah, that's kinda funny. Why don't we ever see a 6502 or a Z80 that runs at 100MHz or more? I would think it'd be so much easier to design a high speed 8-bit processor than a 32 or 64 bit one.
Since we're reminiscing about old processors... I cut my teeth on assembly language programming with my trusty 6809 processor in my Tandy Color Computer. It didn't have as many features as the Commodore 64 which was twice the price, but it was still pretty good.
Programming in assembly gave me a greater appreciation for how computers work, and served me well at college. At Purdue, I took EE 362 (Microprocessors and Interfacing) which also used the 6809. I was the only guy in that semester's class who had done assembly language programming, so I aced it easily. I hadn't done interrupt-driven programming before, so I still learned a lot.
Yep, those were the good ol' days. I bought the Tech Ref manual for my CoCo. It had complete schematics, as well as a description of all major functions. Compare that to today, when I was searching around Intel's site to see how big a L1 cache the PIII has. Sheesh, found some half-useless performance figures and a lot of marketing crap, but no spec sheet. What has the world come to?
Of course, these days aren't so bad. I remember when I was struggling to get an 80-column display for my home system (finally got it with the CoCoIII but it wasn't that good). Then the struggle was to get something close to vi because I had been bitten by the Unix bug. I had started writing my own editor (not nearly as much OSS back then). Now I work and play on a pair of SGI 1600SWs in 24-bit color, with several 32-bit multi-tasking, multi-user OSs at my beck and call. With megabytes (instead of kilobytes) of RAM. I also have my choice of OO languages and compilers, instead of being faced with the decision of Basic vs. Assembly. So it's the good new days too.
Z80 Love Affair (Score:1)
Imagine their suprise when an 11 year old (or around that) walks into a Radio Shack asking for a book on assembler for a machine they haven't sold there in like 5 years or more.
Re:Dirt cheap processing and ease of programming (Score:1)
As for the instruction set; the Z8000 and Z80000 are rather obscure architectures. According to the eZ80 PDF spec, Z80 programming is supported in some kind of virtual machine mode, probably similar to V86 on 80x86 processors. From what I gather is that you run Z80 code in a 64 kilobyte ``sandbox''. Blech! Whatever abundance of Z80 programming talent may be out there, if I'm to believe you, is only directly applicable to this lobotomized mode. I'm guessing, but the full mode likely has an instruction set that is compatible with the 32 bit Z80000, so you want to be coding in that language.
(You know, a lot of people know 8086 programming! But what does that have to do with 32 bit 80386? Would you build on a 80386 on the justification that you can easily find DOS programmers who can hack 8086 code? Oops.)
It's likely that more people know 68K programming than Z80*000* programming. 68K programming hasn't changed much in twenty years, in the sense that if all you know is the original Motorola instruction set (which is pretty darn nice as far as these things go), you can still make fairly good use of any of the family members, unconstrained by address space or register size issues. That is not the case with these awful 4004 descendants, which, despite maintaining measures of backward compatibility, have undergone radical instruction set transformations.
Anyway, you'd probably want to program a 32 bit processor in a higher level language---so ultimately who cares how nice the instruction set is from the programmer's perspective? You can pick up a new machine language on week's notice if you need to; you just need a solid architecture reference manual.
As for the TCP/IP stack---big deal. All you need is a C compiler and some time to port an existing stack. I suspect that these things are a lot easier to come by for a 68K system, than for a Z80* system. (Here is a question: for one thing, is GCC currently targetted for Z80K?)
But I'm all for diversity: let me know when they have Linux or *BSD running on some Z80* box.
Asm is asm is asm; long live assembler! (Score:1)
You learn how operations break up into smaller pieces. You learn that timing varies all over the map. You learn the details of how instructions work, and how that affects programs, for speed, size, clarity, modularity, expandibility.
You gain new respect for compilers and compiler writers. You gain an insight into what makes computers tick that has nothing to do with counting cycles and bytes. You become a much better compiler language programmer without having to worry about counting cycles and bytes, because you have learned the gestalt of computers. Only assembler and machine language teach that.
Certainly some programmers become excellent without ever knowing assembler, but I have met far too many who simply have no understanding deeper than syntax limits of the language of the day. I seriously believe that assembler should be the second language learned, preferably on 8 bit micros where the instruction set, timing and size, can be memorized just by using it. (The first language should be something like Logo, or Python, or maybe the new Rebol, where the goal is to find out if analyzing and debugging is something the student likes.)
As for PICs, I looked them up for a job interview a few years back. Same reaction as when I first saw Sparc and Alpha specs. Yay! another assembler (ahh the Alpha is sweet, especially the atomic r/w). Several cute tricks, but once you have a dozen assemblers under your belt, there are no surprises. 68K, Yay and Thank You Motorola! VLIW, Yay! Merced, Yay! They all have their tricks, and they are all fun.
There is only one exception, and that is the x86. It has no redeeming features. Disgusting registers, disgusting opcodes, and nothing interesting. Wrote a virtual emmory system for 386. What a pig dog!
--
Re:Four times as fast? (Score:1)
Possibly one of the StrongARMs (e.g. the Netwinder's SA110 @275MHz)?
Some other fun machines (Score:1)
CDC 6600/7600 had marvelous interacting registers. Set A1-5 with an 18 bit address and the corresponding 60 bit X register was loaded from that location; set A6-7 and the X was stored to that location; following instructions executed in parallel with the transfer. I have seen many references to them as the first RISC machines, and this was mid 60s. Wonderful wonderful machines. They also had the PPUs to handle I/O and system control. Up to a dozen or so 12 bit computers. Actually one PPU which rotated thru a "barrel" of the dozen or so registers sets and memory banks, looking like separate slow processors. A lot of fun.
Old drum machine spun at 17000 rpm; 200 bands of 25 words aiece I think, decimal, or should I say biquinary (quibinary? Univac had it one way, IBM the other) where the 4 bits were 5-4-2-1 not 8-4-2-1. One gate per circuit card, vacuum tubes power supply, took an hour to spin down. We rewired the instruction set to give us new capabilities!
1620, another decimal machine, with a CRT hooked up so you could toggle the sense switches to play space war.
Fond memories indeed.
--
Re:In related news... afraid not (Score:1)
Of course, we didn't have RC5 back then...
Re:Why Z80? (Score:1)
Of course, I later learned 8086 and then 80386 assembler (I refused to learn the 16-bit protected mode 286 stuff as it was way too crufty
Now I couldn't remember the opcodes for the 6502 if I tried... I haven't coded on that chip in years.
Oh yeah, and the only popular machines with the 6502s were the Apples. The 6800 was really popular on the Commodores. But the rest of the industry standardized on the Z80.
FWIW, the 6502 later begat a 16-bit version, the 65816, which was put into the Apple IIgs in 1986, which was really the first "multimedia" computer (stereo quality sound [not yet available on the Macs at that point], had a CD-ROM drive available for it, had decent graphics for the time (640x400). AFAIK, Motorola is still selling the chips for embedded applications (they were last time i checked), but who knows.
The TI graphing calculators run @ 6 Mhz (Score:1)
I am very interested in taking apart my TI-82 or -86 and putting a eZ80 in the socket. But will the new processor run on the same voltage? If it runs @ 6 Mhz it will be four times faster, something which will be a definite advantage when graphing equations or manipulating Matricies...
Howfully prices will be set soon, something cheap enough to allow one to tinker with and not worry about if it gets fried in your graphing calculator.
Re:What you don't realize (Score:1)
A FPGA from Xilinx costs about $20. The Z-80 costs a few dollars. Multiply the difference by about 1 million and you see significant savings by using the Z80 from Zilog.
Anyone remember Cromemco? (Score:3)
I remember the good 'ole days of Cromemco and the Cromix operating system. Some of the machines had a Z80 and a Motorola 6800 DPU. The Z80 ran backward comtability programs andthe 6800 ran the OS.
My dad and I hooked up an A-to-D board and controlled an RC car in the garage. Talk about your open standards. It schematics, replacement component #'s (not part #'s, component), journals about the hardware/software similar to the linux community or LJ ("TechTips" it was called).
It had the original Star Trek and Adventure, I blasted banner pages at all of my dads employees, and sat dumb-founded by the high-speed dot matrix printer with the gree-bar. It rattle back and forth until it walked accross the room. I can remember having to build a sound absorbing box because nobody could hear the phone over the top of it.
I guess my favorite thing about the system was being able to fry a serial port controller in the morning and have it repaired in an hour with off the shelf components.
Re:cool! i want one (Score:1)
And I still think it should be possible to put Linux on an 89.
--
Re:In related news... afraid not (Score:1)
Re:Oh waoo I learned ASSEMBLY on those puppies :-) (Score:1)
The aspect of the PIC which I found the most confusing was trying to do a table lookup from ROM. I was used to a 6502/68000 style where you would use an indirect addressing mode, like "move.b (a0),d0". On the PIC you have to call a subroutine which adds the desired table offset to the program counter register, thus jumping somewhere into a block of RETLW xx instructions (which return from a subroutine with a constant 'xx' in the W register). It gets harder if your table crosses a page boundary.
Still, apart from a few oddities, I like PICs. There is a series with Flash memory (e.g. 16F84) rather than EPROM, which greatly speeds up the development cycle time (no more UV-erasing). There's also a series (e.g. 12CE518) which comes in an 8-pin package with up to 6 I/O lines, and a serial EEPROM on board.
Re:Dirt cheap processing and ease of programming (Score:2)
My coffemaker has a PIII-500 in it - for a heating element!
Re:Oh waoo I learned ASSEMBLY on those puppies :-) (Score:2)
Then I got to Purdue where I learned 'the true nature of the Force' with OS/360 BAL. Thank god they got a vax 11-780 the next year or I might have given up on programming as a career (I eventually did anyway, but not because of IBM mainframe assembly.
By the time I graduated in '86 they had IBM XT's but I never had much of a chance to program assembler on those.
Re:Crystal Ball (Score:2)
How about a TRS-80 / Sinclair flame war?
Re:Infamous? (Score:2)
Hmph. Go find some documentation on the Saturn CPU used in the HP-28/48/49 calculators. It makes the Z-80 look like a 68000 from that aspect.
instructions that don't work well together (it's a pain to add an 8bit counter to a 16bit total)
You mean like:
In general, the Z-80 was simple to learn and use, from both the hardware and software perspectives. I'm happy to see it still around. Some things I did with it in 1980 (say, a programmable sequence tone generator - in 4 chips and no RAM) were next to impossiblt to do as well or as cheaply for years afterward.
--
Xerox 820 (Score:2)
It's 8 inch drive was compatable with an
IBM key to disk machine, don't remember the
number. Anyway, I wrote a program to emulate the
key to disk machine and it worked. Just didn't
have the cash to buy it at the time.
My wife wanted a setup like that to replace
her keypunch machine. We still have it.
Maybe I should ebay the keypunch machine!
Re: (Score:2)
ZCPR, here we come! (Score:3)
On the other hand, the larger memory space and (seemingly built-in?) TCP/IP stack offers the opportunity to build a "RetroWeb Server." Note that ZSDOS, [psyber.com] a ZCPR variant, is now available under the GPL.
The possibilities are immense, I mean, minscule. A complete web server could probably fit in a volume of 2 cubic inches...
If I remember correctly... (Score:2)
Pete
I can see through time - Lisa Simpson
In related news... (Score:4)
Re:cool! i want one (Score:2)
-phil
Re:Long live the Z80 (Score:5)
My Dad was an EE who worked for Control Data and I was a pimply-faced teenager who loved programming. We homebrewed an S-100 bus based Z80A computer between 1975 and 1978 (so it took us awhile!). I wrote the BIOS for our hardware for CP/M 1.2 (later 1.4 and 2.0 also) in Z80 assembler.
We also did a number of embedded projects with the chip. The z80 had features that were a dream for embedded programmers. In our case, we made a simulated event-driven machine by polling during a timer interrupt. We made use of the aforementioned dual register sets. Instead of the normal chaos of stack frame switching (and hoping you do it right) we just said the prime register set is for the interrupt service routine and the regular set is for the normal operation. On entry to the ISR, just do an EXX and on exit do another one. No disruption of the "application" whatsoever, plus interrupt latency is unbeliveably small (no external bus cycles at ALL!)
I did and do love this chip. I know it can't really cut it as a general purpose computer CPU anymore, but some of those apps that were built on and ran on this hardware (WordStar, etc.) did quite a bit. They're not that much weaker than Word and they would run in less than 64k on machines clocked at from 2 to 6 MHz. How well would Word do?
It is great to see this processor still alive and kicking.
Infamous? (Score:2)
Assembler hax. (Score:2)
Oh waoo I learned ASSEMBLY on those puppies :-) (Score:5)
The computer I had was a CPC 6128 and Gee, did I just love this computer? I even made myself an 8Kb memory extension to write my own boot code that you would call like |Eg0r and stuff from the basic prompt, brilliant!
Anyway, I still do think that in order to learn assembly properly, all you need is a processor you understand everything about, from registers to conditional jumps and so on... Man, x86s are just too complicated to program :-need all those instructions? I know it's cool to have instructions that would take you several op codes to get the same result, but when you learn, all you need is the bare minimum :-)
Anyway, what I learned about the Z80 around when I was a 14 year old teenage kid thinking 'Gee, 8K? I'll NEVER need that much space' :-) helped me with the motorola 68K (both at school and on my Amiga) and then with the TMS320C30, C50, C40 DSPs...
Once you've seen ONE assembly, they are all the same, but you need to start humble, and the Z80 was just a great start for me.
Of course, this is all redundant now, because VLIW is not something you code by hand, but having some knowledge being able to code a microcontroller is never lost!
See Imaging [imaging.com] tutorials 1 [imaging.com] and 2 [imaging.com] to get some ideas of what can be done both in C, assembly and MMX!
So, what do you guys have learned assembly on?
---
Re:Legos and so much more... (Score:4)
Here [attaway.org] are some Z80 source code for projects done back in college, including GUI with mouse, etc.
Not to mention the Hitachi variants... (Score:2)
Hitachi has done this sort of thing before; the Hitachi 6309 is essentially a souped-up Motorola 6809, as many of the old TRS-80 Coco fans know...
-- Bryan Feir
What you don't realize (Score:3)
BTW, I too learned my assembly on a Z80. I learned real quick what happens when an ISR takes too long by writing code to blink the screen on a TRS-80 from interrupt, a lesson that I have carried forward into my years as a professional embedded software designer.