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

Fix ldh [c], a and ldh a, [c] #539

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

jenningsfan
Copy link
Contributor

ldh [c], a is listed at the pandocs instruction set listing as being 0b11100100(0xE4). At the bottom of the page, it states that E4 is an invalid opcode. According to the optables, and gbops ldh [c], a is actually E2. The same mistake seems to have been made with ldh a, [c]. It is listed as F4 whereas it is actually F2.

This PR changes the table on the page to move ldh [c], a to E2 and ldh a, [c] to F2.

Copy link
Member

@ISSOtm ISSOtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, by bad, got a little mixed up. Thank you!

@ISSOtm ISSOtm merged commit f026175 into gbdev:master Jan 29, 2024
@jenningsfan jenningsfan deleted the fix-opcodes-E2-and-F2 branch January 29, 2024 15:42
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

Successfully merging this pull request may close these issues.

None yet

2 participants