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