@@ -119,7 +119,7 @@ def mkusr(self, name, src: Target):
119119llvmrawprogram (
120120 name = "vic20_yload_loader" ,
121121 srcs = [
122- "./vic20/vic20loader .S" ,
122+ "./vic20/vic20loader_yload .S" ,
123123 "./diskaccess/io_yload_vic20.S" ,
124124 "./diskaccess/io_yload_common.S" ,
125125 "./vic20/vic20.inc" ,
@@ -129,10 +129,24 @@ def mkusr(self, name, src: Target):
129129 linkscript = "./vic20/vic20loader.ld" ,
130130)
131131
132+ llvmrawprogram (
133+ name = "vic20_jiffy_loader" ,
134+ srcs = [
135+ "./vic20/vic20loader_ieee488.S" ,
136+ "./diskaccess/io_jiffy_vic20.S" ,
137+ "./vic20/vic20.inc" ,
138+ ],
139+ deps = ["src/lib+bioslib" , "include" , ".+commodore_lib" ],
140+ cflags = ["-DVIC20" ],
141+ linkscript = "./vic20/vic20loader.ld" ,
142+ )
143+
132144llvmrawprogram (
133145 name = "vic20_iec_loader" ,
134146 srcs = [
135- "./vic20/vic20loader_iec.S" ,
147+ "./vic20/vic20loader_ieee488.S" ,
148+ "./diskaccess/io_ieee488_vic20.S" ,
149+ "./diskaccess/io_ieee488.S" ,
136150 "./vic20/vic20.inc" ,
137151 ],
138152 deps = ["src/lib+bioslib" , "include" , ".+commodore_lib" ],
@@ -182,12 +196,31 @@ def mkusr(self, name, src: Target):
182196)
183197
184198llvmrawprogram (
185- name = "vic20_iec_fd2000_bios" ,
199+ name = "vic20_jiffy_1541_bios" ,
200+ srcs = [
201+ "./vic20/vic20.S" ,
202+ "./diskaccess/bios_1541.S" ,
203+ "./diskaccess/io_jiffy_vic20.S" ,
204+ "./diskaccess/rw_ieee488.S" ,
205+ "./vic20/vic20.inc" ,
206+ ],
207+ deps = [
208+ "include" ,
209+ "src/lib+bioslib" ,
210+ "third_party/tomsfonts+4x8" ,
211+ ".+commodore_lib" ,
212+ ],
213+ cflags = ["-DVIC20" ],
214+ ldflags = ["--gc-sections" ],
215+ linkscript = "./vic20/vic20.ld" ,
216+ )
217+
218+ llvmrawprogram (
219+ name = "vic20_jiffy_fd2000_bios" ,
186220 srcs = [
187221 "./vic20/vic20.S" ,
188222 "./diskaccess/bios_fd2000.S" ,
189- "./diskaccess/io_ieee488.S" ,
190- "./diskaccess/io_ieee488_vic20.S" ,
223+ "./diskaccess/io_jiffy_vic20.S" ,
191224 "./diskaccess/rw_ieee488.S" ,
192225 "./vic20/vic20.inc" ,
193226 ],
@@ -207,8 +240,8 @@ def mkusr(self, name, src: Target):
207240 title = "cp/m-65: c64" ,
208241 items = {
209242 "cpm" : ".+c64_loader" ,
210- "& yload1541" : ".+usr_yload1541" ,
211- "bios" : ".+c64_bios" ,
243+ "yload1541,u " : ".+usr_yload1541" ,
244+ "bios,s " : ".+c64_bios" ,
212245 },
213246)
214247
@@ -217,8 +250,8 @@ def mkusr(self, name, src: Target):
217250 title = "cp/m-65: vic20" ,
218251 items = {
219252 "cpm" : ".+vic20_yload_loader" ,
220- "& yload1541" : ".+usr_yload1541" ,
221- "bios" : ".+vic20_yload_1541_bios" ,
253+ "yload1541,u " : ".+usr_yload1541" ,
254+ "bios,s " : ".+vic20_yload_1541_bios" ,
222255 },
223256)
224257
@@ -227,17 +260,26 @@ def mkusr(self, name, src: Target):
227260 title = "cp/m-65: vic20" ,
228261 items = {
229262 "cpm" : ".+vic20_iec_loader" ,
230- "bios" : ".+vic20_iec_1541_bios" ,
263+ "bios,s " : ".+vic20_iec_1541_bios" ,
231264 },
232265)
233266
234267mkcbmfs (
235- name = "vic20_iec_fd2000_cbmfs" ,
268+ name = "vic20_jiffy_1541_cbmfs" ,
269+ title = "cp/m-65: vic20" ,
270+ items = {
271+ "cpm" : ".+vic20_jiffy_loader" ,
272+ "bios,s" : ".+vic20_jiffy_1541_bios" ,
273+ },
274+ )
275+
276+ mkcbmfs (
277+ name = "vic20_jiffy_fd2000_cbmfs" ,
236278 title = "cp/m-65: vic20" ,
237279 type = "d2m" ,
238280 items = {
239- "cpm" : ".+vic20_iec_loader " ,
240- "bios" : ".+vic20_iec_fd2000_bios " ,
281+ "cpm" : ".+vic20_jiffy_loader " ,
282+ "bios,s " : ".+vic20_jiffy_fd2000_bios " ,
241283 },
242284)
243285
@@ -255,6 +297,7 @@ def mkusr(self, name, src: Target):
255297 "c64" ,
256298 "vic20_yload_1541" ,
257299 "vic20_iec_1541" ,
300+ "vic20_jiffy_1541" ,
258301]:
259302 mkcpmfs (
260303 name = target + "_diskimage" ,
@@ -263,12 +306,13 @@ def mkusr(self, name, src: Target):
263306 items = COMMODORE_ITEMS_WITH_SCREEN ,
264307 )
265308
266- mkcpmfs (
267- name = "vic20_iec_fd2000_diskimage" ,
268- format = "fd2000" ,
269- template = ".+vic20_iec_fd2000_cbmfs" ,
270- items = COMMODORE_ITEMS_WITH_SCREEN ,
271- )
309+ for target in ["vic20_jiffy_fd2000" ]:
310+ mkcpmfs (
311+ name = f"{ target } _diskimage" ,
312+ format = "fd2000" ,
313+ template = f".+{ target } _cbmfs" ,
314+ items = COMMODORE_ITEMS_WITH_SCREEN ,
315+ )
272316
273317mametest (
274318 name = "c64_mametest" ,
0 commit comments