Working with BOS

This application is built on top of Micro-BOS (Basic Operating System) and as such can provide file and directory access as well as loading files. Not all standard DOS commands are available as these can be easily provided by the host PC.

format
csd
dir
cd
md
del
type
xload
reload
 

format
format <a or b>
format b

This erases all of the contents of an SD card and initialises it to a FAT 16 system. A prompt is issued before the action starts and to continue it must be answered with ‘y’. A 1G card will take several minutes. NOTE: This has only been tested on 1G and 16MB cards and so may not always work. It would be preferable to format the card on the PC.

csd
csd <a: or b:>
csd b:

Changes the default card to a: or b:. If a card does not exists error 22 will be reported.

dir
dir

Lists the current directory or subdirectory on the default card. There are no options that can be followed with this such as *. or fr*.*

cd
cd <location>
cd b:\sub1
cd sub2

Changes the current directory on the specified drive.

md
md <new directory>
md sub3

Creates (makes) a new directory on the specified drive.

del
del <file name>
del fred.bas
del "file name.txt"

Deletes a file form the specified drive and location.

type
type <file name>
type local.bas

List a text file to the screen so that the contents can be seen, this is similar to the ‘cat’ command in Linux.

xload
xload to <”filename”>
xload to “prog.bas”

This will create a file (an overwrite will be warned) and wait for an Xmodem transfer. This statement is used for transferring files from the host PC to the SD Card. The file can be either text or binary. Files are loaded in 1k blocks so the file size will be in multiples of 1k.

reload
reload <”file name”>
reload prog1

Reload combines xload and load (load is described in the 'Program & Functions' section). It is a convenient way of obtaining a ‘bas’ file after editing on the PC. The following actions take place when the reload statement is used: