News for hackers. Stuff that matters.
Re:Writing a Game Boy Emulator in OCaml by laputan_machine on Wednesday January 12, 2022 @09:06AM (#29906430)
The first emulator I wrote was for a virtual machine called the CHIP-8. I used CowGod's reference, it was a fun experience!

http://devernay.free.fr/hacks/chip8/C8TECH10.HTM#2.1

Re:Writing a Game Boy Emulator in OCaml by tombert on Wednesday January 12, 2022 @09:28AM (#29906694)
I forgot about CHIP-8. That might be a good starting point. Thanks for reminding me.
Re:Writing a Game Boy Emulator in OCaml by anthk on Wednesday January 12, 2022 @10:48AM (#29908027)
Try JimTCL, it uses SDL2 for "GUI"'s instead of TK, but it's as compatible (at code level, not TCL extensions, Jimsh uses its own ones) as TCL 8.5 so most stuff will work as is.

If you look at the examples, you'll find that writing a Chip8 emulator with JimTCL it's a breeze.

https://github.com/msteveb/jimtcl