Calc-U 1600Pocket computer emulator Play in browser

Calc-U-1600 Help 9 Product topics A folder as a drive (PC-1600)

Chapter 9 · Product topics

A folder as a drive (PC-1600)

File ▸ Host Drive… makes a folder on your computer a PC-1600 drive, S3:. It is also Y: when no CE-1600P or CE-1600F is attached. BASIC uses it like a RAM-disk drive, and the files are ordinary files in the folder, stored byte for byte. The menu item is there on the PC-1600 only, and not in the Web frontend.

In short:

The host drive is a Calc-U-1600 peripheral with no Sharp original. It is modelled on the MEP rev3 module, a USB drive for the PC-1600's 60-pin connector. To software it looks like a MEP rev3 USB drive: the same device names, subdirectories through CDIR / LDIR, and the MEP's fixed entries, so MEP programs such as FILEX work on it. The MEP is credited in THIRD-PARTY-NOTICES.md.

What works

BASIC Notes
LOAD / SAVE / BLOAD / BSAVE Files are stored byte for byte, exactly as the PC-1600 writes them: tokenized BASIC, SAVE ,A text, BSAVE headers
OPEN … FOR INPUT / OUTPUT / APPEND, INPUT#, PRINT#, CLOSE Set MAXFILES first, as for every device
FILES / LFILES Only 8.3 names, see below
KILL, NAME, COPY, SET "…","P" / "I" / " " Wildcards work as on the RAM disk: every matching file, protected ones skipped (error 159)
DSKF("S3:") The host volume's free space, capped at 2 147 450 880 bytes, the most DSKF can compute
INIT "S3:" Refused: a format must never wipe a host folder
CDIR "path" Changes the current directory and shows the prompt, e.g. S3:/DEV/ASM>, S3:> at the top. / (or \) starts at the top folder, .. goes up, . stays. A folder that isn't there, or .. at the top, is error 152 and the directory stays. A prompt longer than 26 characters shows ... and the end of the path
LDIR Lists the subdirectories of the current directory, in the FILES format

Nothing is converted on the way. A text file written on the computer needs CR LF line ends to read line by line with INPUT#.

Which host files are visible

The PC-1600 sees regular files whose name fits 8.3 and uses only the characters its file-name parser accepts: letters, digits and `@#$%^&()-_{}'.

Attributes and dates

Mounting a folder

Compared with a real MEP rev3

Area MEP rev3 S3
Subdirectories, CDIR / LDIR, the MEP's fixed ROM entries Yes Yes
Current directory after power-on Top folder Top folder
APPEND, DSKF, SET, GET LENGTH ERROR 158 Supported
Files open at once One for reading, one for writing As many as MAXFILES
Names 8.3 recommended Only 8.3 names are visible
INIT Not handled Refused

How the drive is built (driver ROM, I/O protocol, FILE functions) is in PC1600-Host-Drive-Internals.md.

Help built from Calc-U-1600-help.zip 0.9.1, the help of the Calc-U-1600 0.9.1 release.