Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Love the explanation of the DAA instruction. I wrote a gbc emulator in college, but couldn't figure out what that instruction was supposed to do.

I ended up just copying a lookup table from an open source emulator at the time, which of course didn't help my understanding: https://github.com/visualboyadvance-m/visualboyadvance-m/blo...

Funny to finally realize what this does, and now see how the lookup table works.



I kind of dreaded writing that one, to be honest! I didn't quite cover all the details but I hope it made a little more sense. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: