mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:43:15 -06:00
Update FAT Application
This commit is contained in:
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
RomWBW HBIOS CP/M FAT Utility ("FAT.COM")
|
||||
|
||||
Author: Wayne Warthen
|
||||
Updated: 8-Oct-2019
|
||||
Updated: 11-Oct-2019
|
||||
|
||||
Application to manipulate and exchange files with a FAT (DOS)
|
||||
filesystem. Runs on any HBIOS hosted CP/M implementation.
|
||||
@@ -10,7 +10,9 @@ USAGE:
|
||||
FAT DIR <path>
|
||||
FAT COPY <src> <dst>
|
||||
FAT REN <from> <to>
|
||||
FAT DEL <path><fn>
|
||||
FAT DEL <path>[<file>|<dir>]
|
||||
FAT MD <path>
|
||||
FAT FORMAT <drv>
|
||||
|
||||
CP/M filespec: <d>:FILENAME.EXT (<d> is CP/M drive letter A-P)
|
||||
FAT filespec: <u>:/DIR/FILENAME.EXT (<u> is disk unit #)
|
||||
@@ -61,12 +63,12 @@ NOTES:
|
||||
- Files written are not verified.
|
||||
|
||||
- Wildcard matching in FAT filesystems is a bit unusual as
|
||||
implemented by FatFS. See FatFS documentation.
|
||||
implemented by FatFs. See FatFs documentation.
|
||||
|
||||
BUILD NOTES:
|
||||
- Source is maintained on GitHub at https://github.com/wwarthen/FAT
|
||||
|
||||
- Application is based on FatFS. FatFS source is included.
|
||||
- Application is based on FatFs. FatFs source is included.
|
||||
|
||||
- SDCC compiler is required to build (v3.9.0 known working).
|
||||
|
||||
@@ -75,21 +77,25 @@ BUILD NOTES:
|
||||
- See Build.cmd for sample build script under Windows. References
|
||||
to SDCC and ZX must be updated for your environment.
|
||||
|
||||
- Note that ff.c (core FatFS code) gneerates quite a few compiler
|
||||
- Note that ff.c (core FatFs code) generates quite a few compiler
|
||||
warnings (all appear to be benign).
|
||||
|
||||
TO DO:
|
||||
- Confirm HBIOS is present at startup.
|
||||
|
||||
- Allow ^C to abort any operation in progress.
|
||||
|
||||
- Handle wildcards in destination, i.e.:
|
||||
- Handle wildcards in destination, e.g.:
|
||||
"FAT REN 2:/*.TXT 2:/*.BAK"
|
||||
|
||||
- Do something intelligent with R/O and SYS files
|
||||
- Do something intelligent with R/O and SYS files on FAT
|
||||
|
||||
HISTORY:
|
||||
2-May-2019: v0.9 initial release (beta)
|
||||
7-May-2019: v0.9.1 added REN and DEL (beta)
|
||||
8-May-2019: v0.9.2 handle file collisions w/ user prompt (beta)
|
||||
8-Oct-2019: v0.9.3 fixed incorrect filename buffer size (MAX_FN)
|
||||
2-May-2019: v0.9 (beta) initial release
|
||||
7-May-2019: v0.9.1 (beta) added REN and DEL
|
||||
8-May-2019: v0.9.2 (beta) handle file collisions w/ user prompt
|
||||
8-Oct-2019: v0.9.3 (beta) fixed incorrect filename buffer size (MAX_FN)
|
||||
10-Oct-2019: v0.9.4 (beta) upgraded to FatFs R0.13c
|
||||
10-Oct-2019: v0.9.5 (beta) added MD (make directory)
|
||||
10-Oct-2019: v0.9.6 (beta) added FORMAT
|
||||
11-Oct-2019: v0.9.7 (beta) fix FORMAT to use existing partition table entries
|
||||
add attributes to directory listing
|
||||
|
||||
|
||||
@@ -138,9 +138,13 @@ HDSK_RESET:
|
||||
; SLICE C/H/S = 65/16/16 OR 16,640 TOTAL SECTORS
|
||||
; ASSUME 8 SLICES, SO 16640 X 8 = 133,120 TOTAL SECTORS
|
||||
;
|
||||
; 2048 TRKS X 16 HDS X 16 SPT = 524288 OR 80000H
|
||||
;
|
||||
HDSK_CAP:
|
||||
LD DE,133120 >> 16 ; BLOCK COUNT MSW
|
||||
LD HL,133120 & $FFFF ; BLOCK COUNT LSW
|
||||
;LD DE,133120 >> 16 ; BLOCK COUNT MSW
|
||||
;LD HL,133120 & $FFFF ; BLOCK COUNT LSW
|
||||
LD DE,8 ; BLOCK COUNT MSW
|
||||
LD HL,0 ; BLOCK COUNT LSW
|
||||
LD BC,512 ; 512 BYTE SECTOR
|
||||
XOR A ; SIGNAL SUCCESS
|
||||
RET
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user