Page 1 of 1

UAE vs Basilisk II CPU emulation code diff

Posted: Sat Mar 31, 2018 5:32 am
by uyjulian
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.

Re: UAE vs Basilisk II CPU emulation code diff

Posted: Mon Apr 09, 2018 12:26 pm
by SistemaRayoXP
Thanks :lol: , this really helps me to develop the new VirtualMac engine, which is, basically WinUAE merged with Basilisk II to emulate an almost complete Mac.

Read it here: viewtopic.php?f=1&t=9505

In my last post, I explain a bit what I do, and the information about the code on GitHub will help me to make it a bit more easy, thanks

Re: UAE vs Basilisk II CPU emulation code diff

Posted: Wed Apr 11, 2018 8:16 pm
by rickyzhang
What's the upside of switching CPU emulation module?

Re: UAE vs Basilisk II CPU emulation code diff

Posted: Wed Apr 11, 2018 8:44 pm
by SistemaRayoXP
Not so much. But UAE has more than that, it has emulation of entire devices like Video Cards, SCI and so on. And that, added to Basilisk, would be a great improvement