Closed jariseon closed 4 years ago
Thanks for reporting this, @jariseon. The code looks reasonable. I will need to take a closer look and check it against the specs I have. Should be able to it tomorrow evening. Thanks again!
@jariseon Addressed in https://github.com/kosarev/z80/commit/8de084ac927a7cc972767c8389c7813b73b81db3. Can you check if the fix works for you, please?
yes, it works! thanks a million.
btw, do the fast int types provide substantial performance improvements? for some reason i have totally missed them, and only used the basic types like uint8_t in my projects.
Sure, no problem. Re fast_*
types: they are primarily to avoid unnecessary truncations and extra warnings about integer promotions from uint8_t
. I don't have any specific numbers, but logic suggests the less the number of truncations, the faster the code.
Closing this.
hi ivan. i've been evaluating cpu emulators and was able to get your z80 up and running in an hour or so. thanks for great work.
in one of my tests i hit an assert. i suppose that was due to a missing OTIR handler. added the code below, though i'm unsure if it is entirely correct. no idea about tick count.