GameBoy(Color) Programming

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
GameBoy(Color) Programming
by on (#142116)
Can someone give me real good manuals for GB(C) programming using assembler. I'm not sure of using C, I mean yeah it's simple, but performance is getting lower.
Re: GameBoy(Color) Programming
by on (#142129)
This probably should go here.

The GB/GBC uses a custom Z80 variant, so go get a Z80 assembler and look up the differences. Many assemblers have specific support for this variant (usually labeled as GBZ80), so that's something to take into account to save effort.
Re: GameBoy(Color) Programming
by on (#142138)
The most popular assemblers are RGBDS (http://otakunozoku.com/rednex-gameboy-d ... nt-system/) and WLA. You can find lots of information on http://gbdev.gg8.se/wiki/articles/Main_Page and the Pan Doc (I'm not linking to it because I'm not sure it'll be the latest version). I think the official English Game Boy development manual was leaked. There are also some guides if you google.
Re: GameBoy(Color) Programming
by on (#142523)
You should probably use RGBDS, just because there's so much more GB code online written for it than WLA.

Don't believe me? Look here. http://devrs.com/gb/asmcode.php#asmmath http://gameboy.mongenel.com/asmschool.html http://cratel.wichita.edu/cratel/ECE238Spr08

Although if it were my choice, WLA would certainly be the assembler of choice, unless you take its bugs into accommodation.