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

Disassembler misses a DAA #7

Open
tobiasvl opened this issue Jul 3, 2020 · 0 comments
Open

Disassembler misses a DAA #7

tobiasvl opened this issue Jul 3, 2020 · 0 comments

Comments

@tobiasvl
Copy link
Owner

tobiasvl commented Jul 3, 2020

No idea what causes this (I can't reproduce it in a smaller program), but when running 8080EXM.COM the DAA at cycle 86712065 is mistakenly disassembled as a NOP. (It's still executed correctly.)

To reproduce:

tvl@rocinante:~/src/lua-8080 $ luajit main.lua 8080EXM.COM debug
tvl@rocinante:~/src/lua-8080 $ grep -C 2 86712065 debug.log
PC: 0D54, AF: 9A06, BC: 9079, DE: 8D5B, HL: 299D, SP: 0111, CYC: 86712044 (F9 2A A2 0D) - SPHL
PC: 0D55, AF: 9A06, BC: 9079, DE: 8D5B, HL: 299D, SP: 299D, CYC: 86712049 (2A A2 0D 27) - LHLD #A20D
PC: 0D58, AF: 9A06, BC: 9079, DE: 8D5B, HL: A559, SP: 299D, CYC: 86712065 (27 00 00 00) - NOP
PC: 0D59, AF: 0017, BC: 9079, DE: 8D5B, HL: A559, SP: 299D, CYC: 86712069 (00 00 00 22) - NOP
PC: 0D5A, AF: 0017, BC: 9079, DE: 8D5B, HL: A559, SP: 299D, CYC: 86712073 (00 00 22 A2) - NOP
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