4 ms·
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 ju
by deepfriedrice 5y ago
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/blob/e55ed5c0f49757652fbe0ee82e74da42e8e4d856/src/gb/GB.cpp#L286 https://github.com/visualboyadvance-m/visualboyadvance-m/blo...
Funny to finally realize what this does, and now see how the lookup table works.
- binji 5y agoI 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. :)