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
1
vote
2 answers

Can I use two complement for SUB instruction gameboy emulation?

Hello I'm writing an emulator for Game Boy. And I'm struggling with SUB intruction SUB a, 0x92 given a = 0x90. What I am doing is : 0x90 + (-0x92) I use 2 complement method for substraction. -0x92 <=> 2_complement(0x92) <=> 2_complement(10010010)…
Demeter Purjon
  • 373
  • 1
  • 12
1
vote
1 answer

Lua: Read Unsigned DWORD not working in Bizhawk Emulator

When I run my code I get an error on this line: personality = memory.readdwordunsigned(0x02024744) This is the error message I am given by the console: LuaInterface.LuaScriptException: [string "main"]:26: attempt to call field 'readdwordunsigned'…
1
vote
0 answers

scanmem - How to hack game boy color

I have been running RetroPie on raspberry pi 2. I am able to login (ssh) to the raspberry pi and use "scanmem" linux program to modify the values in memory (RAM) to cheat for playstation games. Problem is that when I try to scan the memory for…
Ali
  • 1,442
  • 1
  • 15
  • 29
1
vote
1 answer

ARM Assembly, first instruction upload

I'm trying to learn arm assemly, it will be the first programming language that i can actually say i know. actually right now im learning the machine language first since its easier for me. My question is: How do i load my first instruction…
Nathan Darker
  • 141
  • 1
  • 9
1
vote
1 answer

GB Test ROM emulation issues

I've been making a GameBoy emulator, and I'm currently running it through the test ROMs located here. One of the tests in cpu_instrs.zip is as follows: set_test 5,"POP AF" ld bc,$1200 .loop: push bc pop af push af pop de ld a,c and $F0 cp …
user513638
1
vote
2 answers

Creating a second-counter in C for Gameboy

So I am new to C and have been assigned the task of making a game. I'll be using a Gameboy emulator and have been discouraged from importing any libraries beyond the basics. I would like to come up with a way to run a second-counter (that will…
user2465164
  • 917
  • 4
  • 15
  • 29
1
vote
1 answer

GBA emulator wp7 in C#

I want to do a GameBoy Advance emulator for WP7 but I'm not sure where to start. Anyone can point me in the right direction? I know there is one for GB, maybe starting there would be a good idea. Any libraries or resources?
ebolton
  • 1,126
  • 3
  • 14
  • 20
0
votes
0 answers

I can't pass Blargss's test rom for sound

I'm working on my own GameBoy emulator, just for learning. And I having problems passing the Blargg's test ROM. I'm following the Pan docs but I can't find relevant information to pass the tests. How are the rules for write and read registers so I…
Marcos
  • 1
0
votes
1 answer

Emulating GameBoy's 0xCB 0x19 Instruction

I am writing a gameboy emulator and I am currently implementing 0xCB 0x19 instruction. I am using this test rom: https://github.com/retrio/gb-test-roms/blob/master/cpu_instrs/individual/06-ld%20r%2Cr.gb and comparing my logs against…
Daniel
  • 85
  • 5
0
votes
1 answer

Read Process Memory doesn't seem to give the right value

I am trying to read memory from a process (gameboy advance emulator) in Python using ReadProcessMemory. There is a memory viewer and I am supposed to get 81 at 0xD273 (see picture). I am new to this, I tried to do everything correctly by adding…
0
votes
0 answers

How do I convert .c files to .gb (GameBoy) files on Linux

I'm starting to learn how to program GameBoy games using Visual Studio on Ubuntu 20.04. This requires me to compile my .c file to .gb; on Windows this is done via .bat, but I cannot find an equivalent on Linux. Any ideas?
Omer
  • 1
  • 1
0
votes
1 answer

Does the GameBoy have provisions to run in a low/lower power mode, e.g. when games are paused?

When paused some Gameboy games: Continue with moving visuals (to some degree), Continue with music. Get silent and have a static image only: either last frame frozen, maybe combined with a "Paused" overlay, or feature a custom static Pause…
porg
  • 1,079
  • 1
  • 11
  • 17
0
votes
1 answer

gbz80 Sleep Cycle How To

I just can't figure out how to code a simple sleep/delay cycle in gbz80 "assembly" I must confess that my gbz80 knowledge virtually none, but I was thinking something like: ld bc,XXX call WaitCyclEx WaitCyclEx: ld bc,(&FF05) dec bc …
0
votes
3 answers

Precision timing callback in Qt C++ doesn't give expected results

I'm trying to implement high resolution timing for a Game Boy emulator. A 16-17 millisecond timer is sufficient to get the emulation at roughly the right speed, but it eventually loses sync with precision emulations like BGB. I originally used…
0
votes
3 answers

Can someone help me understand some Assembly language?

I'm sorry is this isn't the right place, but I'm trying desperately to understand what's happening in this Assembly script (I'm assuming that's what it is, based on the hours of googling I've done.) It's a rom for Pokemon Yellow version, and I…