On 02/21/18 13:49, Ray Arachelian via cctalk wrote:
One more, I point to this because it addresses quite a lot of stuff
that's needed to emulate a CPU, though you don't need to implement it
this way at all.
https://web.archive.org/web/20070609200435/http://www.ardi.com/synpaper.php
Generally these days, it doesn't pay to create a JIT, writing in C (or
even javascript in some instances) is enough of a portable "assembly"
language.
But yeah, do mind the endianness, integer sizes, etc.
Also Ferris Writes Emulators series is pretty good:
https://www.youtube.com/watch?v=Fsi9HPcyrU8&list=PL-sXmdrqqYYcL2Pvx9j7d…
(He's got a few more emulator related playlists in his channel beyond
this one that are worth a watch.)