separate apple1 target files; include defines in target files

This commit is contained in:
nino-porcino 2021-12-16 18:32:31 +01:00
parent 66ea547a3d
commit bb67042ebf
6 changed files with 34 additions and 7 deletions

View File

@ -1,6 +1,6 @@
// Apple 1 // Apple 1
.file [name="%O", type="prg", segments="Program"] .file [name="%O", type="prg", segments="Program"]
.segmentdef Program [segments="Code, Data"] .segmentdef Program [segments="Code, Data"]
.segmentdef Code [start=%P,outBin="apple1_codeseg.bin"] .segmentdef Code [start=%P]
.segmentdef Data [start=$0280,min=$0280,max=$0fff,outBin="apple1_dataseg.bin"] .segmentdef Data [startAfter="Code"]

View File

@ -1,10 +1,14 @@
{ {
"extension": "prg", "extension": "prg",
"link": "apple1.ld", "link": "apple1.ld",
"start_address": "0x2000", "start_address": "0x280",
"cpu": "MOS6502X", "cpu": "MOS6502X",
"interrupt": "hardware_all", "interrupt": "hardware_all",
"emulator": "x64sc" "emulator": "x64sc",
"defines": {
"__APPLE1__": 1,
"APPLE1": 1
}
} }

6
kickc/apple1_jukebox.ld Normal file
View File

@ -0,0 +1,6 @@
// Apple 1
.file [name="%O", type="prg", segments="Program"]
.segmentdef Program [segments="Code, Data"]
.segmentdef Code [start=$4000,min=$4000,max=$7fff,outBin="apple1_codeseg.bin"]
.segmentdef Data [start=$0280,min=$0280,max=$0fff,outBin="apple1_dataseg.bin"]

16
kickc/apple1_jukebox.tgt Normal file
View File

@ -0,0 +1,16 @@
{
"extension": "prg",
"link": "apple1_jukebox.ld",
"start_address": "0x4000",
"cpu": "MOS6502X",
"interrupt": "hardware_all",
"emulator": "x64sc",
"defines": {
"__APPLE1__": 1,
"APPLE1": 1,
"APPLE1_JUKEBOX": 1
}
}

View File

@ -7,6 +7,7 @@
"interrupt": "rom_min_vic20", "interrupt": "rom_min_vic20",
"emulator": "xvic", "emulator": "xvic",
"defines": { "defines": {
"__VIC20__": 1 "__VIC20__": 1,
"VIC20": 1
} }
} }

View File

@ -3,11 +3,11 @@
@SET TARGET=%1 @SET TARGET=%1
@echo ======================== VIC20 =================================================== @echo ======================== VIC20 ===================================================
call kickc -targetdir ..\kickc\ -t VIC20_8K -D=VIC20 %TARGET%.c -o out\%TARGET%_vic20.prg -e call kickc -targetdir ..\kickc\ -t VIC20_8K %TARGET%.c -o out\%TARGET%_vic20.prg -e
copy out\%TARGET%.prg out\%TARGET%_vic20.prg copy out\%TARGET%.prg out\%TARGET%_vic20.prg
@echo ======================== APPLE 1 ================================================= @echo ======================== APPLE 1 =================================================
call kickc -targetdir ..\kickc\ -t apple1 -D=APPLE1 %TARGET%.c -o out\%TARGET%_apple1.prg -e call kickc -targetdir ..\kickc\ -t apple1_jukebox %TARGET%.c -o out\%TARGET%_apple1.prg -e
@rem builds the apple1 eprom file @rem builds the apple1 eprom file
call node ..\tools\mkeprom out out\%TARGET%_apple1.bin call node ..\tools\mkeprom out out\%TARGET%_apple1.bin