|
|
|
|
|
by duskwuff
2789 days ago
|
|
A couple of major reasons: 1. The 6502 is heavily register-starved. Three limited-purpose registers is pretty rough. 2. There are no 16-bit registers, so you can't put a pointer in a register. You can put one on the zero page, but that's much more limited. Indexing into arrays larger than 256 bytes gets complicated, too. 3. The 6502's stack isn't well suited for storing data. There's no SP-relative addressing, for instance. It's possible to get the value of SP with PHP/PLA, but this is pretty awkward to work with. |
|
http://cowlark.com/2018-02-27-6502-arithmetic/index.html
http://cowlark.com/2018-03-18-z80-arithmetic/index.html
The 6502 is more orthogonal, and while each instruction does less they're very fast; the Z80 is fundamentally more powerful but weirdly inconsistent, terrifyingly slow, and the unorthogonal register system means that you spend half your time shuffling registers.