4 ms·
The Game Boy was actually a Z80 variant (or, probably more accurately, an 8080 variant supplemented with part of the Z80's instruction set). Nintendo's hit mos
by JonathonW 10y ago
The Game Boy was actually a Z80 variant (or, probably more accurately, an 8080 variant supplemented with part of the Z80's instruction set).
Nintendo's hit most of the big personal computing CPU architectures through the course of their history-- 6502 in NES and SNES, MIPS on the N64, PPC on Gamecube/Wii/Wii U, and ARM on GBA/DS/3DS/Switch. The only ones they really missed were 68k and x86.
- pg_is_a_butt 10y agoi learned 68k asm at some point, and was sure you were wrong because i was usually doing that stuff to hack nintendo roms, but it turns out it was for the TI-92 calculator.
- swiley 10y agoIt's also shockingly easy to write an 8080 emulator, on which you can run CP/M complete with a C compiler.
- WorldMaker 10y agoThe MOS 6502 also has quite easy to emulate opcodes. Hence why it is perhaps unsurprising to find one even embedded in an audio library as in the article here. When I had to write some 6502 code for a lab class in college I didn't like the debugging options in most of the emulators I found and did write my own mini-emulator in JS (or maybe it was PHP; it has been a while) to debug some of the specific parts of code I was working on in that lab class.
- happycube 10y agoI wrote a logic-based 6502 emulator using bitfields a few years ago - less than 500 lines of C. With some patches it became able to run Apple I BASIC... https://github.com/happycube/chadslab/blob/master/m6502/m6502.c https://github.com/happycube/chadslab/blob/master/m6502/m650...