Skip to content

Commit f171572

Browse files
author
Andrew Owen
committed
rebase to main and rebuild Chloe binaries
1 parent da656c5 commit f171572

File tree

5 files changed

+67
-39
lines changed

5 files changed

+67
-39
lines changed

ChloeVM.app/Contents/Resources/se.rom

0 Bytes
Binary file not shown.

basic/modules/13_data.asm

+61-13
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ tbl_offs equ $ - tbl_addrs
215215
defw fp_st_mem_xx;
216216
defw fp_get_mem_xx;
217217

218+
; 4 spare bytes
219+
220+
defw 0
221+
defw 0
222+
218223
; // used in 14_screen_40
219224
; // attributes are stored internally with the foreground in the high nibble and the background in the low nibble
220225
; // this table converts an attribute to its 64-color equivalent in the default palette.
@@ -243,10 +248,6 @@ attributes:
243248

244249
org $4000
245250

246-
; // used in 15_files
247-
dir_msg:
248-
defb "<DIR> ", 0;
249-
250251
; // the next 576 bytes are used for localization
251252

252253
; // used in 06_screen_80
@@ -297,6 +298,7 @@ rpt_mesgs:
297298

298299
org scrl_mssg + 576
299300

301+
defb 0; // one spare byte to align tables
300302

301303
; // used in 07_editor
302304
ed_f_keys_t:
@@ -316,50 +318,67 @@ ed_f_keys_t:
316318
defb s_f14 - $; // $1e
317319
defb s_f15 - $; // $1f
318320

321+
; // macro definitions
322+
; // each definition is 16 bytes. The last byte is always zero.
319323
s_f1:
320324
defb "LIST", 0
325+
defs 11, 0
321326

322327
s_f2:
323328
defb "RUN", ctrl_cr, 0;
329+
defs 11, 0
324330

325331
s_f3:
326-
defb "LOAD",'"', 0;";
332+
defb "LOAD ",'"', 0;";
333+
defs 9, 0
327334

328335
s_f4:
329-
defb "SAVE",'"', 0;";
336+
defb "SAVE ",'"', 0;";
337+
defs 9, 0
330338

331339
s_f5:
332340
defb "CONT", ctrl_cr, 0;
341+
defs 10, 0
333342

334343
s_f6:
335344
defb "COLOR 7,1", ctrl_cr, 0;
345+
defs 5, 0
336346

337347
s_f7:
338348
defb "TRON", ctrl_cr, 0;
349+
defs 10, 0
339350

340351
s_f8:
341352
defb "TROFF", ctrl_cr, 0;
353+
defs 9, 0
342354

343355
s_f9:
344-
defb "EDIT", 0;
356+
defb "EDIT ", 0;
357+
defs 10, 0
345358

346359
s_f10:
347-
defb "SCREEN", 0;
360+
defb "SCREEN ", 0;
361+
defs 8, 0
348362

349363
s_f11:
350-
defb "BLOAD",'"', 0;";
364+
defb "BLOAD ",'"', 0;";
365+
defs 8, 0
351366

352367
s_f12:
353-
defb "BSAVE",'"', 0;";
368+
defb "BSAVE ",'"', 0;";
369+
defs 8, 0
354370

355371
s_f13:
356-
defb "AUTO", 0;
372+
defb "GOSUB ", 0;
373+
defs 9, 0
357374

358375
s_f14:
359-
defb "GOTO", 0;
376+
defb "GOTO ", 0;
377+
defs 10, 0
360378

361379
s_f15:
362-
defb "KEY", 0;
380+
defb "KEY ", 0;
381+
defs 11, 0
363382

364383
; // used in 03_keyboard
365384
kt_main:
@@ -455,6 +474,35 @@ tk_ptr_rem:
455474
tk_ptr_last:
456475
str "ASAVE";
457476

477+
; // used in 15_files
478+
dir_msg:
479+
defb "<DIR> ", 0;
480+
481+
; // the following data cannot be moved to the ROM area
482+
basepath:
483+
defb "/programs"; // "/programs/" (continues into progpath)
484+
485+
prgpath:
486+
defb "/prg"; // "/prg/", 0 (continues into rootpath)
487+
488+
rootpath:
489+
defb '/', 0; // root
490+
491+
appname:
492+
defb ".prg", 0; // application extension
493+
494+
resources:
495+
defb "../rsc", 0; // resource folder
496+
497+
old_bas_path:
498+
defb "/system/temporar.y/old.bas", 0;
499+
500+
sys_folder:
501+
defb "system", 0
502+
503+
tmp_folder:
504+
defb "temporar.y", 0
505+
458506
; // used in 09_command
459507
offst_tbl:
460508
defw p_def; // 97 (DEF)

basic/modules/15_files.asm

+5-25
Original file line numberDiff line numberDiff line change
@@ -143,31 +143,6 @@ app_not_found:
143143
ld sp, (oldsp); // restore stack pointer
144144
jp report_file_not_found; // and error
145145

146-
; // the following data cannot be moved to the ROM area
147-
basepath:
148-
defb "/programs"; // "/programs/" (continues into progpath)
149-
150-
prgpath:
151-
defb "/prg"; // "/prg/", 0 (continues into rootpath)
152-
153-
rootpath:
154-
defb '/', 0; // root
155-
156-
appname:
157-
defb ".prg", 0; // application extension
158-
159-
resources:
160-
defb "../rsc", 0; // resource folder
161-
162-
old_bas_path:
163-
defb "/system/temporar.y/old.bas", 0;
164-
165-
sys_folder:
166-
defb "system", 0
167-
168-
tmp_folder:
169-
defb "temporar.y", 0
170-
171146
open_w_create:
172147
ld b, fa_write | fa_open_al; // create or open for writing if file exists
173148
jr open_f_common; // immediate jump
@@ -464,6 +439,11 @@ ifdef no_fs
464439
endif
465440
call unstack_z; // return if checking syntax
466441

442+
ld ix, old_bas_path; // path to old.bas
443+
ld a, '*'; // use current drive
444+
rst divmmc; // issue a hookcode
445+
defb f_unlink; // delete file if it exists
446+
467447
ld ix, rootpath; // go to root
468448
ld a, '*'; // use current drive
469449
rst divmmc; // issue a hookcode

bin/FIRMWA~1.BIN

0 Bytes
Binary file not shown.

boot/boot.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
; slam equ 1; // uncomment to build SLAM+128/divMMC version
2424

25-
scrl_mssg equ $4009; // check against symbol table before building
25+
scrl_mssg equ $4000; // check against symbol table before building
2626

2727
; // restarts
2828
divmmc equ $08;

0 commit comments

Comments
 (0)