Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement "undocumented" 8085 instructions and flags #63

Open
hackerb9 opened this issue Mar 25, 2022 · 0 comments
Open

Implement "undocumented" 8085 instructions and flags #63

hackerb9 opened this issue Mar 25, 2022 · 0 comments

Comments

@hackerb9
Copy link
Contributor

hackerb9 commented Mar 25, 2022

GNUSim8085 should support the "undocumented" 8085 instruction and flags but does not appear to.

It has been known since 1979 that the 8085 contains undocumented opcodes and flag bits. Some clones of the 8085 implement these instructions. Tundra even documented that their CA80C85B supported the undocumented opcodes. (However, whoever wrote the Tundra documentation apparently didn't know how their own chips worked, according to Ken Shirriff, as the flag info is wrong; they simply pasted in the guesses from the 1979 article linked above).

The information on flags from Ken Shirriff and opcodes from Pavel Zima is based on images of the silicon circuitry on the actual chip and are definitively correct.

Besides being interesting, some of the extra features are very handy, for example the K flag (bit 5 of the flag register) which is for comparison between signed values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant