9Fermer11
ozzyyzzoLe 19/05/2021 à 06:31
Mega Shocked (./9):
Thank you for seeing my SOS and reviewing my message in a bottle.

I tried your suggestion and of creating a P2 rom with some data in it.
Upon doing this I was met with challenges and revelations.


I know it sounds and feels like you are helping a delinquent because you are!


Hehe,,

yep, first step using 2MB instead of 1MB is a good and easy goal for a start. smile

Concerning your makefiles 3 suggestions:

1) Don't use and link any code into P2 or above , just data.. this means that you must avoid to link any library.

the line : LIBS = -lDATlib -lprocess -lc -lgcc is suspicious , code and libraries must be linked into 'P1' makefle *only*

2) Watch out about object files collisions your 'P2' makefile is linking over an object called test.o, i would recommend to output link results in different files per makefile (e.g : test1.o to test.9.o)


3) Keep 'P1' makefile as usual with everything required by Datlib there but keep 'P2' almost empty. (you should need only original neocart.x script and your OBJS as data.)

As an example the P2 link command could look like this :

gcc -L%NEODEV%\m68k\lib -m68000 -O3 -Wall -fomit-frame-pointer -ffast-math -fno-builtin -nostartfiles -nodefaultlibs -D__cart__ -Wl,-Map,foo2.map -T%NEODEV%\src\system\neocart.x %NEODEV%\tmp\_level01MapSprite.o -o test2.o