mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-18 07:31:25 +00:00
separate apple1 target files; include defines in target files
This commit is contained in:
parent
66ea547a3d
commit
bb67042ebf
@ -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"]
|
||||||
|
|
||||||
|
@ -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
6
kickc/apple1_jukebox.ld
Normal 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
16
kickc/apple1_jukebox.tgt
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
|||||||
"interrupt": "rom_min_vic20",
|
"interrupt": "rom_min_vic20",
|
||||||
"emulator": "xvic",
|
"emulator": "xvic",
|
||||||
"defines": {
|
"defines": {
|
||||||
"__VIC20__": 1
|
"__VIC20__": 1,
|
||||||
|
"VIC20": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user