News for hackers. Stuff that matters.
Re:Emulating the Original Gameboy’s CPU by atum47 on Friday December 27, 2019 @01:00PM (#21892917)
How long did it take to make? I been thinking about writing my own emulator in JavaScript for a while now. I know there's a lot of great projects out there, but I like to make one myself.
Re:Emulating the Original Gameboy’s CPU by Macha on Friday December 27, 2019 @05:34PM (#21895358)
Depends how accurate you want to get.

Getting an implementation of the CPU instructions in a high level language with instruction level accuracy and approximately correct timings is a weekend or two project.

Going for extra components like the graphics or audio support, or higher accuracy in terms of cycle counts and timing can make it a lot longer.

Re:Emulating the Original Gameboy’s CPU by eatonphil on Friday December 27, 2019 @02:24PM (#21893689)
The first emulator I wrote in JavaScript for a subset of x86 took a couple hours (maybe 4-6) over the weekend before I could run a `int main() { return 1 + 3; }` program. Like others have mentioned the GB takes longer before you get to the point of something you can see working.