Questions tagged [gameboy]

The Game Boy was the first portable console released by Nintendo. It has a black and white screen and, compared to more recent portable devices, it has relatively simple programming API.

The Game Boy was the first portable console released by Nintendo. It has a black and white screen and, compared to more recent portable devices, it has relatively simple programming API.

Questions relating to the Nintendo Game Boy and Nintendo Game Boy Color consoles, along with development of games and their .

Questions relating to the Nintendo DS and subsequent consoles belong on . Questions relating to the Nintendo Game Boy Advance should use .

Useful resources

  • GBDK: GameBoy Developers Kit. Contains some of the essential tools for DMG Game Boy development, including an ANSI C compiler, assembler, linker, several libraries, and some example programs.
  • RGBDS: Rednex Game Boy Development System. An assembly toolchain for the Nintendo Game Boy & Game Boy Color
  • Awesome List: A curated list of Game Boy development resources such as tools, guides, technical documentation, tutorials, emulators, related projects and open-source ROMs.
  • GameBoy Dev'rs: Various resources, tutorials, and documentation for the original Game Boy.
  • GameBoy Advance Dev'rs: Various resources, tutorials, and documentation for the Game Boy Advance.
104 questions
3
votes
2 answers

Emulate GameBoy Color's GameLink

I'm currently developing a GameBoy Color Emulator for learning purposes. I also wanted to emulate the GameLink functionality (poké-fight ftw!), but I did not found any documentation, examples, references or source snippets on how to emulate the…
Johannes Klauß
  • 10,676
  • 16
  • 68
  • 122
3
votes
1 answer

OS-related operations and modes on ARM7TDMI(GameBoy Advance)

I would like to know whether the CPU of the GBA can use any features usually reserved for OSes, and how one can do this. For instance, I would like to have access to the privileged modes which the cpu apparently supports, but I can not understand…
byrondrossos
  • 2,107
  • 1
  • 15
  • 19
2
votes
2 answers

Gameboy-like keys and D-Pad for Android

I wanted to make an RPG for Android 2.3 Mobile Phone and thought that the good old Gameboy had the perfect format for such games. So I want to build a "Case" with a D-Pad and a few keys and connect them with the Android Device over USB. I don't want…
Sojaki
  • 187
  • 1
  • 8
2
votes
0 answers

Creating new Qt OpenGL texture seems faster than reusing old ones

I've been working on a Game Boy emulator using Qt and OpenGL. I'm pretty new to both Qt and OpenGL. It's in a pretty stable condition, and I removed what I thought was some wasteful code from the OpenGL routines. I have a routine that is called…
2
votes
1 answer

How can I generate a checksum for this cartridge header?

I'm trying to generate a cartridge header checksum for a Game Boy cart. The cartridge header checksum is defined as this C-like pseudocode: unsigned char checksum = 0; for(unsigned char *p = 0x0134; p < 0x014D; p++) x += ~*p; or…
S.S. Anne
  • 15,171
  • 8
  • 38
  • 76
2
votes
1 answer

How does adding and subtracting affect register states in a GameBoy?

I am currently developing a GameBoy emulator. While coding I started to question how adding to a register affects it. There are eight 8 bit registers and four 16 bit registers on the cpu. The 8 bit registers can be combined to form 16 bit registers.…
Noah Lewis
  • 85
  • 1
  • 8
2
votes
0 answers

I keep getting a "parse error" and a "can't find" error in Visual Studio Code

I'm attempting to learn a bit of C to program games for the Game Boy from a tutorial, and I keep getting two errors: A "parse error" and a "can't find" error. Can anybody tell what's going on and how to fix it? I've only tried running what I have,…
Chris64
  • 21
  • 4
2
votes
1 answer

Difference between RL n and RLA CPU instructions

According to the GameBoy manual, these instructions are as follows: rla 17 4 000c rotate akku left through carry rl r CB 1x 8 z00c rotate left through carry However, I'm having hard time understanding the…
Daniel Ribeiro
  • 10,156
  • 12
  • 47
  • 79
2
votes
2 answers

Fatal error while printing a 2 dimensional array

Im having this problem with a little chunk of code: for(x = 0; x < 8; x++){ for(y = 0; y < 8; y++){ printf(" %d", occupy[x][y]); } printf(" \n"); } I'm making a randomly generated maze game for the Gameboy, and I'm using a 2d array to know where…
isaac tschampl
  • 388
  • 2
  • 12
2
votes
0 answers

GBDK MetaTile Confusion

I am trying to write my own Game Boy game using GBDK, and I am at a total roadblock. The tiles can only be 8x8 or 8x16, but I need my sprites to be 16x16. From the extremely few things on the internet about it I picked up that I need to use…
isaac tschampl
  • 388
  • 2
  • 12
2
votes
1 answer

Why do some emulators need a BIOS dump?

Why do some emulators need a BIOS dump? For example Playstation emulators do, but Gameboy and SNES emulators don't.
2
votes
1 answer

GameBoy ISA (Writing an Emulator)

I am working on a GameBoy emulator in C. Right now I am working on the CPU.c file and I am a little confused on some instructions that I see listed here: http://realboyemulator.files.wordpress.com/2013/01/gbcpuman.pdf If you refer to page 66 of the…
Bubo
  • 768
  • 4
  • 18
  • 34
2
votes
1 answer

Emulate audio from a gameboy ROM in javascript

With this emulator http://www.codebase.es/jsgb/ I did this project https://github.com/rafaelcastrocouto/gbonline. Now I want to emulate the sounds and music with the html5 audio API, but I have no idea where to start. I've looked at the emulator…
rafaelcastrocouto
  • 11,781
  • 3
  • 38
  • 63
2
votes
3 answers

Emulation: Unconditional jumps and PC increment through CPU cycles

I'm writing a simple GB emulator (wow, now that's something new, isn't it), since I'm really taking my first steps in emu. What i don't seem to understand is how to correctly implement the CPU cycle and unconditional jumps. Consider the command JP…
joncys
  • 1,300
  • 11
  • 25
2
votes
2 answers

How To Compile Game Boy ROM From C or C++

I need to compile a Game Boy ROM in Windows. How is that done? I've looked everywhere on Google, only to find dead links.
motoku
  • 1,571
  • 1
  • 21
  • 49