Hi all, this may be a noob question, but I just can seem to come up with a good answer. When writing an emulator, how do you test a result of a mathmatic operation to see if a half carry occurred so you can set the H flag (6809 cpu). I have looked at some source code, but the way they have checked for this is not readily apparent to me. Anyway, if anyone knows of a good way to test a result in c++ for a half carry, I would be interested in seeing it.
Thanks for the time