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

CPC: Reason for Chase HQ and Cybernoid found #32

Open
floooh opened this issue Apr 4, 2018 · 0 comments
Open

CPC: Reason for Chase HQ and Cybernoid found #32

floooh opened this issue Apr 4, 2018 · 0 comments
Assignees
Labels

Comments

@floooh
Copy link
Owner

floooh commented Apr 4, 2018

Ok, here's the reason why this was broken, then worked and then was broken again:

It's the cassette read trap here:

z80_set_trap(&board.z80, 1, this->casread_trap);

Problem is: cannot simply set and clear the trap from inside the CPU callback... this will not be noticed by the CPU since the CPU struct is overwritten... need to implement a more robust solution since the same problem can also happen on other systems (one solution would be a separate 'bool z80_check_trap(int trap_id)' callback which would only be called for verification when the 16-bit address matches.

@floooh floooh self-assigned this Apr 4, 2018
@floooh floooh added the bug label Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant