0 Members and 2 Guests are viewing this topic.
If somebody links me to some assembly info for the Prizm, I would not mind attempting to write an emulator. I wrote an emulator for a made up system on my TI-84+ a while back, and in assembly, the only difficult things would be hardware emulation, including the keymap, LCD, timers, and linkport. I do have enough knowledge of the z80, I believe, to write an emulator.
Well, with CPU emulators it's best to write one specifically for the CPU you're using, in Asm. That way, commands can be directly linked, like how AND functions virtually identically across instruction sets. In C, doing an AND command is much more than the single operation.
The hard part about emulating other CPUs on the SuperH is that there is only one flag that can be affected by various operations. For addition/subtraction, that means you'll have to detect carry, overflow, sign, zero flags separately, plus the odd half-carry flag that's already a pain to emulate on most architectures.
• Sixteen 32-bit general registers (eight banked registers)• Five 32-bit control registers• Four 32-bit system registers (SH-3)• Six 32-bit system registers (SH-3E)