H4th - VDrive

Programming in Forth
Post Reply
Admin
Site Admin
Posts: 15
Joined: Tue Apr 02, 2019 5:29 pm

H4th - VDrive

Post by Admin » Tue Apr 16, 2019 6:25 pm

New Forth words to control the VDRIVE in H4th.

SND - Sends a formatted command to the VDRIVE. Called from all other words.
DIR - Displays a list of folders and files withing the current folder, Usage DIR
CD - Changes directory. Usage " <Dir>" DIR to move to the named directory, " .." DIR to move to the parent directory.
MKD - Creates a new directory. Usage " <Newdir>" MKD
DLD - Deletes an existing directory. Usage " <Dir>" DLD
DLF - Deletes an existind file. Usage " <File>" DLF
CLF - Closes an open file. Usage CLF
IDD - Displays the VDRIVE ID. Usage IDD
FS - Displays free space on USB drive. Usage FS - Only seems to work within IDD
DVL - Displays USB Drive volume information. Usage DVL
DSN - Displays USB Drive number. Usage DSN
REN - Renames an existing file. Usage " <Filename> <Newfilename>" REN
SEK - Moves to a position within an open file. Usage n SEK
VSAVE - Deletes and saves the edit window. Usage " <File>" VSAVE

: SND SEND PRT CR ;
: DIR " DIR" SND ;
: CD " CD " + SND ;
: MKD " MKD " + SND ;
: DLD " DLD " + SND ;
: DLF " DLF " + SND ;
: CLF " CLF" SND ;
: IDD " FS" SND " IDD" SND ;
: FS " FS" SND ;
: DVL " DVL" SND ;
: DSN " DSN" SND ;
: REN " REN " + SND ;
: SEK " SEK" SND ;
: VSAVE CDUP " DLF " + SND
VSTORE ;

Post Reply