gbdev / gbdev/gb-opcodes

Bytes and cycles for prefix opcodes

Open
#3 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
28
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Some people (on the emudev Discord server) seem to be confused by the fact that the table lists `0xCB` as 1 byte and 4 cycles, while all the `0xCB`-prefixed opcodes in the separate table add that 1 byte and those 4 cycles to their totals.

For example, `RLC B` at `0xCB 0x00` is listed as taking 2 bytes and 8 cycles, but in the main table `PREFIX` at `0xCB` is listed as taking 1 byte and 4 cycles.

That's not incorrect _per se_, since fetching the 1-byte prefix takes 4 cycles, so I'm not sure what the best "solution" would be. Perhaps just a footnote?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.