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

faulty opcodes implimentation in simz80.c #1

Open
dallday opened this issue Feb 15, 2021 · 0 comments
Open

faulty opcodes implimentation in simz80.c #1

dallday opened this issue Feb 15, 2021 · 0 comments

Comments

@dallday
Copy link

dallday commented Feb 15, 2021

After playing with the code I thought I should let you know that I don't think these opcodes are correct.

This is decrementing the BC register but it should be just decrementing the B register, and it's not setting the Z flag.
INI

The decrement of B is actually decrementing C and putting it in B
It should then be checking if B is zero.
OUTI
IND
OUTD

The cb_prefix bit check opcodes are updating after the check even when they are just checking.

Stay safe
David

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