tetris_disassembly icon indicating copy to clipboard operation
tetris_disassembly copied to clipboard

link error

Open datajerk opened this issue 1 year ago • 2 comments

$ rgblink -o tetris.gb main.o
error: Unable to place "MENU_IN_GAME" (ROM0 section) at address $1bce: section overlaps with "Main"

datajerk avatar Feb 21 '24 04:02 datajerk

Not a proper fix, but using an older RGBDS release solves the problem. RGBDS 0.50 for example assembles and links with no problems.

Docheinstein avatar Apr 19 '24 15:04 Docheinstein

I tried v0.5.2 and v0.6.1 of RGBDS with success

I was even able to compile the project with version v0.7.0 using the -l option

     -l, --auto-ldh
             Optimize loads of the form LD [$FF00+n8],A into the opcode LDH [$FF00+n8],A.  
             This option is deprecated and will be removed in the next version.

but there is another warning:

warning: at top level: [-Wobsolete]
    Automatic `ld` to `ldh` optimization is deprecated
rgbasm -l -o main.o main.asm
rgblink -o tetris.gb main.o

Here I fixed some deprecation warnings here:

https://github.com/alexsteb/tetris_disassembly/pull/3

https://github.com/Josef-Friedrich/tetris_disassembly/commit/c18a624bbdd60db8484ed93c77c0cac63fe94757

Josef-Friedrich avatar May 06 '24 16:05 Josef-Friedrich