Klemens Nanni writes:
> On Sat, Mar 31, 2018 at 01:18:46PM +0200, Klemens Nanni wrote:
> > I did a quick test, the toolchain seems to work and my ROM starts, but
> > that might mean nothing at all:
> > 
> >     $ cat > a.s
> >     section "die",rom0
> This must be a banked ROM section (ROMX).

On Game Boy the program counter starts at $100, where you have four
bytes before the header starts. Typically it goes:

section "header",rom0[$100]
        nop
        jp Start
        ds $14C
section "program",rom0[$150]
Start:
        ; ...

> >     di ; disable interrupts
> >     stop ; stop the cpu
> >     $ rgbasm -o a.o a.s
> >     $ rgblink -o a.gb a.o
> >     $ rgbfix -v a.gb
> >     $ mednafen a.gb
> > 
> > Have fun!

Reply via email to