DefineNumericMacro ("__LUNIX__", 1);
break;
+ case TGT_ATMOS:
+ DefineNumericMacro ("__ATMOS__", 1);
+ break;
+
default:
AbEnd ("Unknown target system type");
}
/* Table with target names */
const char* TargetNames [TGT_COUNT] = {
- "none",
+ "none",
"module",
"atari",
"c64",
"bbc",
"apple2",
"geos",
- "lunix"
+ "lunix",
+ "atmos"
};
-
+
+
TGT_APPLE2,
TGT_GEOS,
TGT_LUNIX,
+ TGT_ATMOS,
TGT_COUNT /* Number of target systems */
} target_t;
-
+
case TGT_APPLE2: memcpy (Tab, CTNone, sizeof (Tab)); break;
case TGT_GEOS: memcpy (Tab, CTNone, sizeof (Tab)); break;
case TGT_LUNIX: memcpy (Tab, CTNone, sizeof (Tab)); break;
+ case TGT_ATMOS: memcpy (Tab, CTNone, sizeof (Tab)); break;
default:
AbEnd ("Internal error: Target system unknown (%d)", Target);
}
-
+
*.s
apple2.inc
atari.inc
+atmos.inc
bbc.inc
c128.inc
c64.inc
--- /dev/null
+MEMORY {
+ ZP: start = $02, size = $1A, type = rw, define = yes;
+ RAM: start = $0600, size = $9200, define = yes, file = %O;
+}
+SEGMENTS {
+ CODE: load = RAM, type = wprot;
+ RODATA: load = RAM, type = wprot;
+ DATA: load = RAM, type = rw;
+ BSS: load = RAM, type = bss, define = yes;
+ ZEROPAGE: load = ZP, type = zp;
+}
+FEATURES {
+ CONDES: segment = RODATA,
+ type = constructor,
+ label = __CONSTRUCTOR_TABLE__,
+ count = __CONSTRUCTOR_COUNT__;
+ CONDES: segment = RODATA,
+ type = destructor,
+ label = __DESTRUCTOR_TABLE__,
+ count = __DESTRUCTOR_COUNT__;
+}
+SYMBOLS {
+ __STACKSIZE__ = $800; # 2K stack
+}
+
+
+
+
INCS = apple2.inc \
atari.inc \
+ atmos.inc \
bbc.inc \
c64.inc \
c128.inc \
atari.inc: cfg/atari.cfg
@$(CVT) $< $@ CfgAtari
+atmos.inc: cfg/atmos.cfg
+ @$(CVT) $< $@ CfgAtmos
+
bbc.inc: cfg/bbc.cfg
@$(CVT) $< $@ CfgBBC
/* Actual target configurations, converted into C strings by a perl script */
#include "apple2.inc"
#include "atari.inc"
+#include "atmos.inc"
#include "bbc.inc"
#include "c128.inc"
#include "c64.inc"
{ BINFMT_BINARY, CfgNone },
{ BINFMT_O65, CfgModule },
{ BINFMT_BINARY, CfgAtari },
+ { BINFMT_BINARY, CfgAtmos },
{ BINFMT_BINARY, CfgC64 },
{ BINFMT_BINARY, CfgC128 },
{ BINFMT_BINARY, CfgEmpty }, /* Ace */