Fix bug in usage of CONST segment in banked code. Use #pragma constseg

This commit is contained in:
logicog
2025-10-14 18:41:52 +02:00
parent 58c21a1986
commit 7546d0c685
15 changed files with 15 additions and 7 deletions
-2
View File
@@ -17,8 +17,6 @@ $(BUILDDIR)%.asm: %.c
$(CC) $(CC_FLAGS) -o $@ -c -S $<
$(BUILDDIR)%.rel: $(BUILDDIR)%.asm
./treatasm.py $^ >$^.new
mv $^.new $^
${ASM} ${AFLAGS} -o $@ $^
clean:
+1
View File
@@ -16,6 +16,7 @@
#define CMARK_S 6
#pragma codeseg BANK1
#pragma constseg BANK1
extern __code struct f_data f_data[];
extern __code char * __code mime_strings[];