Command line tools








File and Directory display

: tail_f        { l_*name l_len | l_handle l_*buff l_key-wait -- }
List/Type the given file in ASCII format. Suitable for ASCII files.

: tail          \ -- ; TAIL <filename>
List/Type a file in ASCII format. Suitable for ASCII files.

: pwd           \ --
Display the current working directory.

: cd            \ -- ; CD <name>
Change directory to that given by the following text (if any). Then display the working directory.

: 5.r           \ n --
Display n as 5 digits plus a space.

: .ExtData      \ addr --
Display the extent data starting at addr.

: show-file-details     \ fcb --
Displays extended file information from an FCB/FLD structure.

: ls            { | l_buff l_fld-buff -- }
List the files in the working directory with a lot of diagnostic information.




Host to target file transfer

These tools are compiled if the Xmodem file transfer tools have been compiled. They allow files to be copied to and from the host over the CONSOLE (serial) link. The ANS file interface and the Xmodem code in COMMON\XmodenTxRx.fth are required. Host file selection must be performed by the host's communication tools. If you are using AIDE's PowerTerm tool, this is built in.

0 value fh      \ -- fileid
temorary file handle

: wf128         \ --
Write 128 bytes from the host to the target file given by FH.

: Host>File     \ caddr len --
Copy a host file to the named target file, which will be created using the name given by caddr/len.

: rf128         \ --
Read 128 bytes from the target file given by FH.

: File>Host     \ caddr len --
Copy the named target file to the host.