Skip to content

Commit

Permalink
Added opcodes.json legend
Browse files Browse the repository at this point in the history
  • Loading branch information
lmmendes committed Apr 20, 2019
1 parent dd91f70 commit 01c389d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ The [opcodes.json](https://raw.githubusercontent.com/lmmendes/game-boy-opcodes/m

> The opcodes.json file includes some minor fixes in the opcode length and timings not present on the pastraiser.com site.
```
{
"unprefixed": {
"0xc0": { <-- Address
"mnemonic": "SET", <-- Instruction mnemonic
"length": 2, <-- Length in bytes
"cycles": [ <-- Duration in cycles
8
],
"flags": [ <-- Flags affected
"-", <-- Z - Zero Flag
"-", <-- N - Subtract Flag
"-", <-- H - Half Carry Flag
"-" <-- C - Carry Flag
],
"addr": "0xc0", <-- Address
"operand1": "0", <-- Operand 1
"operand2": "B" <-- Operand 2
},
...
},
...
}
```

## Reference documentation

http://www.pastraiser.com/cpu/gameboy/gameboy_opcodes.html
Expand Down

0 comments on commit 01c389d

Please sign in to comment.