UAE vs Basilisk II CPU emulation code diff
Posted: Sat Mar 31, 2018 5:32 am
https://gist.github.com/uyjulian/2081c3 ... edafc067f9
I took a old version of UAE and Basilisk II and compared them; the result is located at the link above.
Key differences:
Include files were changed, or integrated into the source file
The "currprefs" structure is not used; variables in that structure have been integrated into the code
Different naming:
currprefs.address_space_24 -> TwentyFourBitAddressing
currprefs.cpu_level -> CPUType
Amiga memory mapping has changed to Mac memory mapping
REGPARAM2 is used
update_68k_cycles removed
m68k_reset first two lines changed:
m68k_areg (regs, 7) = 0x2000;
m68k_setpc (ROMBaseMac + 0x2a);
EMUL_OP 71xx opcode handled
m68k_go turned re-entrant
That's the major changes that I caught. Hopefully this information allows anybody who wants to update the CPU core in Basilisk II to use the CPU core from Previous, Hatari, or WinUAE.
I took a old version of UAE and Basilisk II and compared them; the result is located at the link above.
Key differences:
Include files were changed, or integrated into the source file
The "currprefs" structure is not used; variables in that structure have been integrated into the code
Different naming:
currprefs.address_space_24 -> TwentyFourBitAddressing
currprefs.cpu_level -> CPUType
Amiga memory mapping has changed to Mac memory mapping
REGPARAM2 is used
update_68k_cycles removed
m68k_reset first two lines changed:
m68k_areg (regs, 7) = 0x2000;
m68k_setpc (ROMBaseMac + 0x2a);
EMUL_OP 71xx opcode handled
m68k_go turned re-entrant
That's the major changes that I caught. Hopefully this information allows anybody who wants to update the CPU core in Basilisk II to use the CPU core from Previous, Hatari, or WinUAE.