All Projects → lmmendes → Game Boy Opcodes

lmmendes / Game Boy Opcodes

Licence: mit
Game Boy CPU (Sharp LR35902) instruction set (opcodes)

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Game Boy Opcodes

Provenance
iOS & tvOS multi-emulator frontend, supporting various Atari, Bandai, NEC, Nintendo, Sega, SNK and Sony console systems… Get Started: https://wiki.provenance-emu.com |
Stars: ✭ 4,732 (+9364%)
Mutual labels:  gameboy
Gameboy
🎮 Game Boy emulator written in Rust
Stars: ✭ 17 (-66%)
Mutual labels:  gameboy
Gameboy Examples
Example programs that run on the Nintendo GameBoy
Stars: ✭ 34 (-32%)
Mutual labels:  gameboy
Mooneye Gb
A Game Boy research project and emulator written in Rust
Stars: ✭ 557 (+1014%)
Mutual labels:  gameboy
Giovanni
A Gameboy Emulator for the Apple Watch
Stars: ✭ 823 (+1546%)
Mutual labels:  gameboy
Rustboy
A game boy emulator in rust
Stars: ✭ 8 (-84%)
Mutual labels:  gameboy
Pokemon Font
GAME BOY font from Pokémon R/G/B/Y/G/S/C, Unicode extended.
Stars: ✭ 437 (+774%)
Mutual labels:  gameboy
Gbz overlay
Gameboy Zero status icon overlay display
Stars: ✭ 46 (-8%)
Mutual labels:  gameboy
Gameboy
Full featured Cross-platform GameBoy emulator by Rust. Forever boys!.
Stars: ✭ 893 (+1686%)
Mutual labels:  gameboy
Wasmboy
Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️
Stars: ✭ 963 (+1826%)
Mutual labels:  gameboy
Cartreader
A shield for the Arduino Mega that can back up video game cartridges.
Stars: ✭ 590 (+1080%)
Mutual labels:  gameboy
Rgbds
Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy & Game Boy Color
Stars: ✭ 772 (+1444%)
Mutual labels:  gameboy
Vba M Nx
WIP full featured port of VBA-M for Nintendo Switch
Stars: ✭ 11 (-78%)
Mutual labels:  gameboy
Gearboy
Game Boy / Gameboy Color emulator for iOS, macOS, Raspberry Pi, Windows, Linux and RetroArch.
Stars: ✭ 528 (+956%)
Mutual labels:  gameboy
Gameboy Css
👾 Pure CSS GameBoy - Includes animations and the original sound 🔊
Stars: ✭ 39 (-22%)
Mutual labels:  gameboy
Gbdk 2020
An updated version of GBDK, A C compiler, assembler, linker and set of libraries for the Z80 like Nintendo Gameboy.
Stars: ✭ 436 (+772%)
Mutual labels:  gameboy
Evoland.gb
A fan-made demake of Evoland on GameBoy
Stars: ✭ 24 (-52%)
Mutual labels:  gameboy
Gbsounddemo
GBDK sound sample fixed
Stars: ✭ 50 (+0%)
Mutual labels:  gameboy
Lazyboy
An EDSL implemented in Haskell for programming the Nintendo Game Boy.
Stars: ✭ 44 (-12%)
Mutual labels:  gameboy
Coffee Gb
Gameboy emulator in Java 8.
Stars: ✭ 953 (+1806%)
Mutual labels:  gameboy

Game Boy Opcodes

Game Boy CPU (Sharp LR35902) instruction set (opcodes)

The opcodes.json contains a JSON representation of the complete Sharp LR35902 instruction set. Inside the bin folder you will find the script used to generate the opcodes.json file from the pastraiser.com site.

Description of opcodes.json

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
      "group": "control/misc" <-- Opcode group
      "operand1": "0",        <-- Operand 1
      "operand2": "B"         <-- Operand 2
    },
    ...
  },
  ...
}

Operation group table:

op group description
x8/lsm 8-bit Load/Store/Move
x16/lsm 16-bit Load/Store/Move
x8/alu 8-bit Arithmetic Logic Unit
x16/alu 16-bit Arithmetic Logic Unit
x8/rsb 8-bit ???
control/br branch
control/misc misc

Reference documentation

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

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/lmmendes/game-boy-opcodes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The code is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].