gbdev / gb-opcodes

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

Operands metadata are inconsistent #11

Closed 64kramsystem closed 1 year ago

64kramsystem commented 3 years ago

For some instructions/opcodes, the operands metadata is inconsistent.

See for example ADD A, B (0x80):

      "operands": [
        {
          "name": "A",
          "immediate": true
        },
        {
          "name": "B",
          "immediate": true
        }
      ],

this is instead SUB A, B (0x90):

      "operands": [
        {
          "name": "B",
          "immediate": true
        }
      ],

the SUB` instruction is missing the first operand.