Comment on RBoy: A Gameboy Emulator in RustparentComments−pdw4yThe Game Boy doesn't use a Z80 though. It's based on a SM83 core, an obscure Sharp design.−flohofwoe4yIt's essentially a stripped Z80 without the DD-, ED- and FD-prefix instruction ranges. The core instruction block and CB-prefix range is (nearly) the same.−busterarm4ySee the other responses, but my comment was really suggesting that if LLVM barely supports Z80 then the GameBoy CPU is a hopeless lost cause.−detaro4yTrue, but the instruction set is very close, so a Z80 implementation is a good starting point.
Comments
The Game Boy doesn't use a Z80 though. It's based on a SM83 core, an obscure Sharp design.
It's essentially a stripped Z80 without the DD-, ED- and FD-prefix instruction ranges. The core instruction block and CB-prefix range is (nearly) the same.
See the other responses, but my comment was really suggesting that if LLVM barely supports Z80 then the GameBoy CPU is a hopeless lost cause.
True, but the instruction set is very close, so a Z80 implementation is a good starting point.