gbdev / gb-opcodes

https://gbdev.io/gb-opcodes/optables/
Creative Commons Zero v1.0 Universal
24 stars 10 forks source link

Shouldn't some of the operand names be within brackets in the opcodes.json? #14

Closed fizaan closed 1 year ago

fizaan commented 3 years ago

For example: 0x02: LD (BC), A

Capture
tobiasvl commented 1 year ago

The brackets are added when generating the website, if "immediate" is false (as it is here).

ISSOtm commented 1 year ago

I think it's better to expose the "inner" arguments in the JSON, as that saves parsing the strings, and also syntaxes disagree on how to note "dereference" (parens versus brackets).

That said, if this isn't clear enough, it's worth copying @tobiasvl's description somewhere. Maybe in the README?

ISSOtm commented 1 year ago

It also saves the bikeshedding of (bc) vs [bc] or <throw in some other exotic, obscure syntax>.