5 ms·
"The Gameboy’s CPU is known as the DMG CPU. It is equipped with 6 registers of 16 bit each and they’re called AF, BC, DE, HL, SP and PC." Those look like Z80 r
by nottorp 7y ago
"The Gameboy’s CPU is known as the DMG CPU. It is equipped with 6 registers of 16 bit each and they’re called AF, BC, DE, HL, SP and PC."
Those look like Z80 register names. Guess it's a Z80 and the article autor doesn't know that?
- DanBC 7y agoIt's not really a Z80. This article talks about the differences: https://realboyemulator.wordpress.com/2013/01/01/the-nintendo-game-boy-1/ https://realboyemulator.wordpress.com/2013/01/01/the-nintend... Or this one: https://gbdev.gg8.se/wiki/articles/CPU_Comparision_with_Z80 https://gbdev.gg8.se/wiki/articles/CPU_Comparision_with_Z80
- userbinator 7y agoI suspect Nintendo may have started with a Z80 core and then customised it a little bit, similar to what they did with the almost-6502 in the NES.
- simias 7y agoIt's definitely based on the Z80, but it's also different enough that you can't really base yourself on Z80 docs to implement the Game Boy CPU (I learned that the hard way). The flags are different, the timings are different, some instructions are removed, some instructions are added etc...
- nottorp 7y agoAhaaa... I live and learn. About long dead CPUs.
- djmips 7y agoI guess you didn't know about the 8080 and how the Z80 is it's child?
- RetroSpark 7y agoIt's more like a cut-down Z80. Some registers are missing (note the list excludes IX and IY), as are some instructions (but a few others are added) and even some of the status flags. The official name of the CPU is unknown - there's some discussion of that here: https://forums.nesdev.com/viewtopic.php?f=20&t=18335 https://forums.nesdev.com/viewtopic.php?f=20&t=18335