Comment by alnwlsn
2 days ago
I happen to be working on an RP2350 TRS-80 emulator, and I've been using this one [0] as the z80 core (because I figured this had been done enough times and why reinvent the wheel?).
Looking at the two z80.c side by side, it definitely doesn't look like a copy-paste job (at least compared with [0], I'm sure it was trained on many others). The AI version is a lot better commented, although [0] is probably closer to how I would have structured it had I written one.
The interfacing between the two is very similar though, so I was curious to try the AI version to see if there was any cycle efficiency difference. Running the same short loop in Level II basic, I find the AI version to be just about 1.5% slower. Make of that what you will.
On one RP2350 core, I figure these versions top out about equal to a 6Mhz Z80. I do wonder what you would get if you asked for a version optimized for ARM Cortex-M33.
No comments yet
Contribute on Hacker News ↗