codl :heart_nb: :heart_ace: is a user on chitter.xyz. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
codl :heart_nb: :heart_ace: @codl

how hard is it to make a game boy emulator. asking for a friend (me)

i wanted to make an NES emulator at first bvut then i realised i never had a NES and i wouldnt be able to tell if it wasnt running quite right

also how foolish is it to make an game boy emulator in an interpreted language

@codl probably not that foolish. using a language you're comfortable with is more important that performance, especially when you're learning

@ddipaola good point but id also like the games to be playable when it's done 😬

@codl IIRC, the NES is more strict on timing (homebrew written against old emulators was famously incompatible with real hardware). I also hear the GameBoy has a simple CPU

@codl the GB has Gambatte which is super accurate and, being an open source emulator, it means you could hack it to dump debug info (if it doesn't do that already). one of my queued projects is to extract Gambatte's core for automated GameBoy unit tests

@codl Not sure what nintendo system it was but a crazy BSD nerd once made a quite good one in few hours.

@codl It's not necessarily super hard, there's some good guides and tutorials out there as well if you do some digging.

Emulating the CPU is the easy part, from what little I know. The peripheral hardware is harder.

Interepreted language... depends on the language, and how much time you want to spend optimizing things.