From 0af602beb589c8e16415d3aaac434b165afc541b Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 14 Dec 2020 01:52:55 +0100 Subject: [PATCH] Added Commander X16 Platform Target and example program. #581 --- src/main/kc/target/cx16.ld | 10 ++++++++++ src/main/kc/target/cx16.tgt | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/main/kc/target/cx16.ld create mode 100644 src/main/kc/target/cx16.tgt diff --git a/src/main/kc/target/cx16.ld b/src/main/kc/target/cx16.ld new file mode 100644 index 000000000..88d801012 --- /dev/null +++ b/src/main/kc/target/cx16.ld @@ -0,0 +1,10 @@ +// Commodore 64 PRG executable file +.file [name="%O", type="prg", segments="Program"] +.segmentdef Program [segments="Basic, Code, Data"] +.segmentdef Basic [start=$0801] +.segmentdef Code [start=%P] +.segmentdef Data [startAfter="Code"] +.segment Basic +:BasicUpstart(%E) +.segment Code + diff --git a/src/main/kc/target/cx16.tgt b/src/main/kc/target/cx16.tgt new file mode 100644 index 000000000..bdf51bbdd --- /dev/null +++ b/src/main/kc/target/cx16.tgt @@ -0,0 +1,11 @@ +{ + "description": "Commander X16 PRG executable file.", + "extension": "prg", + "link": "cx16.ld", + "start_address": "0x080d", + "cpu": "WDC65C02", + "emulator": "x16emu -debug -run -prg", + "defines": { + "__CX16__": 1 + } +} \ No newline at end of file