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

BRK wrong PC pushed #38

Open
Mat2095 opened this issue Mar 26, 2019 · 0 comments · May be fixed by #44
Open

BRK wrong PC pushed #38

Mat2095 opened this issue Mar 26, 2019 · 0 comments · May be fixed by #44
Labels

Comments

@Mat2095
Copy link

Mat2095 commented Mar 26, 2019

BRK is a two-byte instruction, so PC is incremented twice before being pushed, not just once.

Sources:
http://www.thealmightyguru.com/Games/Hacking/Wiki/index.php?title=BRK
http://nesdev.com/the%20%27B%27%20flag%20&%20BRK%20instruction.txt
and blaggr's instr_test_v5

@AndreaOrru AndreaOrru added the bug label May 10, 2020
@TianZerL TianZerL linked a pull request Feb 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants