Liste des Groupes | Revenir à cl c |
On 27/03/2025 01:10, Waldek Hebisch wrote:bart <bc@freeuk.com> wrote:On 26/03/2025 18:09, Janis Papanagnou wrote:
>, primitive CPU architectures,>
8-bit architectures were fine, just a bit short of registers and with
limitation instruction sets. But that is to be expected with only 27,000
transistors on a chip or whatever it was for Z80.
All sources that I found say that Z80 is about 8000 transistors.
You probably took number from 8086 which was climed to have 27000
transitors.
OK, then with 8000 it makes the capabilities even more remarkable.
Current processors have billions of transistors.
Z80 (like earlier 8080) in "general" instructions required
accumulator as one of arguments, that severly limited utility
of registers.
(BTW, have a go at emulating such a processor in sofware; tell me in 3
months how you got on.)
Lone processor is not very interesting. I do not think coding
simple emulator would take a lot of time. Z80 instruction set
is a bit bulky, due to prefixed instructions, but decode could
be done quite naively using 5 tables with 256 positions each
(or a bit smarter using 3 tables)
I don't think this is the one I saw, but the z80.c file here:
https://github.com/redcode/Z80/tree/master/sources
is nearly 3000 lines. There is a lot of stuff consider!
In my case, I wanted something performant, but I could see 90% of
emulation time being spent in multiple flags most of which would never
be tested.
Les messages affichés proviennent d'usenet.