Ok, in attached GPUINT.tst.zip in file gpu_list.s I added test macros:
Macro_Test UpdateList, 32 ;<-- Works ok
Macro_Test jagbits, 32 ;<-- Doesn't work
Macro_Test width, 32 ;<-- Doesn't work
how do you generate COF then? rmac with -fb flag gives me only .O file.
yes, in makefile jaguar.bin is defined as jagbits.
ok, now I use ".incbin" for jaguar.bin, and "include" for other .S files, and problem with external variables has gone.
but I faced another problem with ".org" in JagTST.zip
currently all variables point to the same address $4000
lea v_bmp_lowl,A0
lea a_hde,A0
lea main_obj_list,A0
When I comment ".org $4000" from row 62, then those variables point to the same address $0
When additionally I comment ".org objList" from row 41, they point to correct unique address (based on definition from makefile), but my ".objproc" points to address in the rom. which isn't ok.
GPUINT.tst.zip
JagTST.zip