Add CARTSIZE to cfg file for configuring the a78 header. Add descriptions of usage.

This commit is contained in:
Karri Kaksonen
2022-03-07 08:48:59 +02:00
parent cc9535e82f
commit eb86bc33b9
3 changed files with 33 additions and 12 deletions

View File

@@ -1,7 +1,12 @@
# Atari VCS 7800 linker configuration file for cc65
# This cfg file adds the a78 header in front of the image
# If you want just the ROM you can mark the __EXEHDR__ as weak instead of import
# But for the most common use we add the a78 automatically as it
# contains info about what kind of cart the build supports
SYMBOLS {
__STACKSIZE__: type = weak, value = $0010; # 16 bytes stack
__STACKSIZE__: type = weak, value = $0600; # C stack
__CARTSIZE__: type = weak, value = $c000;
__EXEHDR__: type = import;
__VEC_BOTTOM__: value = $fffa, type = export;
__VEC_SIZE__: value = $6, type = export;
@@ -21,7 +26,7 @@ MEMORY {
RAM2: file = "", define = yes, start = $2100, size = $0040, type = rw;
RAM3: file = "", define = yes, start = $2200, size = $0600, type = rw;
# For emulators you also need a header file
HEADER: file = %O, start = $0000, size = 128;
HEADER: file = %O, start = $0000, size = 128;
# "Normal" cartridge rom. Multiple banks arent supported
# by this script. You may change the rom size, but keep
# two things in mind:
@@ -37,7 +42,7 @@ MEMORY {
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
EXEHDR: load = HEADER, type = ro, define = yes;
EXEHDR: load = HEADER, type = ro;
STARTUP: load = ROMS, type = ro, define = yes;
ONCE: load = ROMS, type = ro, define = yes;
CODE: load = ROM, type = ro, define = yes;