3 ms·
I think the 16-bitness alone won't help all that much except for some 16-bit address computations, but the bigger register set of the 8088/8086 and the code bei
by flohofwoe 4y ago
I think the 16-bitness alone won't help all that much except for some 16-bit address computations, but the bigger register set of the 8088/8086 and the code being written in assembly may allow to map 6502 registers to fixed 8086 registers, which is a pretty big advantage compared to writing the emulator in a high level language (not sure if the emulator uses that approach though, if it would just run the CPU emulation it would be trivial, but when emulating the whole hardware the manual register allocation may become a bit trickier).
- tssva 4y ago"Most of the state of the emulated 6502 CPU is stored in 8086 registers: A => dl X => cx Y => bp PC => si The Z and N flags are stored directly in the 8086 ZF and SF, while dh stores the C and the O flags. The stack pointer is stored in memory."
- jcadam 4y agoMight help if you want to emulate a 65816 for a IIgs? But I imagine you'd want at least a 286 for that.
- anthk 4y agoWasn't that the SNES CPU? A 486 maybe, and for basic emulation.