Microbee ZSDOS Guide

Microbee ZSDOS Guide

For the ZSDOS side of the multi-boot CF card (card 36, 23.11.26). It assumes you know only a little CP/M.

1. What happens when you press 2

When the Microbee starts from the CF card it shows the boot menu:

MICROBEE CF BOOT
1  GAMES      Microbee games, Shell v3.01
2  ZSDOS      ZCPR 3.4, ZSDOS 1.1, NZ-COM A:B:
3  DEMO       MEGA MICROBEE (1MB RAM)
Press 1, 2 or 3

Pressing 2 starts this sequence. You only watch; nothing needs typing.

  1. Loading ZSDOS… The ROM reads the ZSDOS system from the card into memory. That system has three parts: a small command processor, the ZSDOS 1.1 disk operating system, and the BIOS. The BIOS is the Microbee-specific part that drives the keyboard, the 80×25 screen, the clock and the CF card.
  2. The status line appears on the bottom row. The BIOS keeps it there, with the time on the right:
     ZCPR 3.4 + ZSDOS 1.1  NZ-COM 1.2  FOLDER E: Microbee multi-boot   16:54
  3. NZ-COM builds Z-System. The first command run is NZCOM. It opens A0:NZCOM.LBR and loads each part of Z-System into its place in memory:
    NZCOM Version 1.2 System Loader for Z-Com v2.0
      Loading A0:NZCOM.ZCM
      Loading A0:NZCOM.LBR|NZCPR.ZRL for B900   (ZCPR 3.4 command processor)
      Loading A0:NZCOM.LBR|NZDOS.ZRL for C100   (ZSDOS 1.1)
      Loading A0:NZCOM.LBR|NZBIO.ZRL for CF00   (link to the BIOS)
      Loading A0:NZCOM.LBR|NZRCP.ZRL for D080   (built-in commands)
      Loading A0:NZCOM.LBR|NZFCP.ZRL for D980   (IF / ELSE / FI)
      Loading A0:NZCOM.LBR|NZCOM.NDR for DC00   (directory names)
       Writing A0:NZCOM.CCP
       Writing A0:NZCPM.COM
       Booting NZ-COM...
    It also saves two files: NZCOM.CCP (reloaded after every program ends) and NZCPM.COM (used to leave Z-System).
  4. The start-up command runs. Z-System runs STARTZCM, which holds this command line:
    nzcom myterm.z3t;ldmbee;zerr;lsh
    • nzcom myterm.z3t loads the terminal description, so programs know how to clear the screen and move the cursor.
    • ldmbee loads the Microbee clock driver and DateStamper, which records when each file was created and changed.
    • zerr installs the error handler, which offers to fix a mistyped command.
    • lsh starts the command-line shell, with history on the up arrow.
  5. Ready. You see the prompt:
    ZERR+LSH Fixed Log, Version 1.6b Installed
    A0:COMMANDS>>

Programs get 48K of memory (up to C106h). The command path is A0: $$: A15: A0: (section 2).

2. CP/M basics on this system

The prompt

A0:COMMANDS>> means: drive A, user area 0, which is named COMMANDS. Type a command and press Enter.

Drives and user areas

The command path

When you type a program's name, Z-System looks for it in this order:

  1. A0
  2. $$ (wherever you are now)
  3. A15
  4. A0 again

So everything in A0 and A15 runs from anywhere. A0 is last on purpose: Z-System treats the last place as "root", where it finds ALIAS.CMD. Type PATH to see it.

File names and wildcards

Keys

Enter
Runs the command.
↑ ↓
At the prompt, brings back earlier commands (LSH history).
← →
Move along the command line to fix a typing mistake.
Ctrl-C
Stops most programs and listings.
ESC
Cancels the error handler's "fix this command" offer. In LSH, ESC then J shows LSH's key list.
Ctrl-S
Pauses scrolling text; any key continues.
;
Joins several commands on one line: B0:;DIR

Commands that are always there

These are built into memory, so no file is loaded:

Aliases are short names defined in ALIAS.CMD. The useful ones are:

Help

Type HELP for the help menus, or HELP name, for example HELP VFILER. Most programs also show their options when you type the name followed by //, for example MCOPY //.

3. Everyday tasks

See files
DIR, or DIR B4:. For file dates: FILEDATE or ZXD.
Read a text file
TYPE FILE.TXT, or VIEW FILE.TXT to scroll with the arrows.
Copy
MCOPY B0:=A0:LETTER.TXT (destination first). This keeps date stamps.
Rename
RENAME NEW.TXT=OLD.TXT
Erase / undo
ERAZ FILE.TXT, then UNERASE FILE.TXT straight away if it was a mistake.
Manage files on screen
ZFILER or VFILER: arrow to a file and press a letter to copy, erase or view. FC9726 is a two-panel file manager.
Edit text
ZDE FILE.TXT (small and quick; Ctrl-K X saves and exits), or WordStar (section 4).
Menus
MENU: one-key menu of common jobs. Ctrl-C leaves it.
Date and time
DATE. To set the clock: TD S.
Libraries (.LBR)
List with LDIR NAME, extract with LBREXT, or do both in NULU.
Compressed files
UNCRUNCH (.?Z?), UNCRLZH (.?Y?), UNARC (.ARC).
Games
B3: then ROGUE, ADVENT, QUATRIS or ZGOLF.

4. WordStar: WSZ, WSZX, WSZB

All three are WordStar 4 set up for this Microbee. Its overlay files (WS*.OVR) live in A0 and are found through the path, so it works from any directory.

WSZ
Use this normally. WSZ LETTER.TXT opens a file; WSZ alone gives the opening menu. Inside WordStar, R at the opening menu runs a CP/M command.
WSZX
For a command after WordStar: WSZX LETTER.TXT;TYPE LETTER.TXT edits, then runs the next command when you leave. In WSZX, R can't run Z-System commands.
WSZB
Use this when BackGrounder is loaded. It has smaller buffers so it fits in the memory left, and it reads the disk more often on big files.

Arrow keys move the cursor. Common keys:

5. BackGrounder (BGON)

BackGrounder ii lets you pause the program you're in, do something else, and come back to exactly where you were.

  1. Type BGON once after starting. It loads from B4: and returns you to A0.
  2. In any program, press Ctrl-^ (Ctrl and the ^ key). The program pauses and you get a prompt ending in }.
  3. Run commands there: DIR, TYPE, CALC (a calculator), JOT (a notepad), DATE. Type HELP for its menu.
  4. Press Ctrl-^ again. Your program comes back, with the screen redrawn.

Other features: SWAP (keep two programs and switch between them), CUT / PASTE (copy a block of screen text from one program to another), KEYS (keyboard macros), and SPOOL (print in the background).

With BackGrounder loaded:

Tested in the emulator: suspend, returning with the screen redrawn, CALC, DATE, ZDE and WSZB. Not yet tried: JOT, CUT/PASTE, SWAP, KEYS, SPOOL, REMOVE.

6. Bigger memory, leaving Z-System, turbo

BIGZ name
Runs one program with 50K instead of 48K, then switches back. Example: BIGZ WSZ BIG.TXT. If it stops part-way, type NORMZ.
OFF / EXIT
Leaves Z-System for plain ZSDOS with an A> prompt. To come back, restart and press 2.
CPM
Also leaves Z-System, by restarting plain ZSDOS through the BIOS.
Turbo (36T card)
VibeDrone emulator only. Disk reads and writes run at 10 MHz using the emulator's OUT 254 switch. Programs manage turbo themselves: OUT 254,1 for speed, OUT 254,0 before graphics or sound. After any disk access the speed is back to normal.

7. Where things are kept

A0 COMMANDS
Everyday programs and the system files.
  • Don't move !!BG.SWP (BackGrounder's swap file) or !!!TIME&.DAT (the date stamps).
  • Don't move the NZCOM.* files or ALIAS.CMD.
A15
Help files (.HLP), documents, sources and set-up tools. On the path, so its programs still run by name.
  • For SETUPZST, change to A15: first.
  • For MKZCM, stay in A0:.
A1, B0
SuperCalc 2 spreadsheet (SC2) and its tools.
B3
Games.
B4
BackGrounder ii and its tools.
D:
Shared with the Games side of the card.

8. Every program, A to Z

Every .COM file on the ZSDOS side. Where is the drive and user area. Programs in A0 and A15 run from anywhere; for the others, change to that area first, or type the area before the name (B3:ROGUE).

ProgramWhereWhat it does
A
ADVENTB3Colossal Cave Adventure, the original text adventure game.
ARUNZA0Runs aliases (short names) from ALIAS.CMD, such as DATE and BGON. Version 1.1.
C
CLEDINSTA15Set-up for CLED, a command-line editor. Not used on this card; LSH does that job.
CLEDSAVEA0Saves CLED's command history to a file. Not needed with LSH.
CMDRUNA0The "command not found" helper: Z-System passes unknown commands to it to look up in ALIAS.CMD. Same program as ARUNZ.
CMPRHA0Compares two files byte by byte and shows differences in hex.
COMPA0Compares two files and reports whether they are the same.
COPYA0Copies files, with options such as verify. Version 1.71 for ZSDOS.
CPMA0Leaves Z-System and restarts plain ZSDOS (A> prompt). Works only with this card's BIOS.
CPSETA0Shows or changes the screen and printer width and length that programs are told.
CRUNCHA0Compresses files (crunched files have a Z in the middle of the type, such as .TZT). Alias CR.
D
DA0Lists what is inside a library (.LBR) file.
DATSWEEPA0File manager: tag files, then copy, erase, view or rename them. Keeps date stamps.
DATTIMA1, B0A small utility supplied with SuperCalc.
DDA0Disk directory with sorting and size options. Version 2.0.
DIFFA0Compares two files and tells Z-System the result, so scripts can act on it.
DIRATRA0Sets file attributes (read-only, system) for groups of files.
DSCONFIGA15Configures DateStamper options. Already done for this card.
E
EBASICA0BASIC-E compiler: turns a .BAS program into a .INT file that ERUN runs. Manual: A15:EBASIC.DOC.
EDA0VDE 2.30 screen editor by Eric Meyer, set up for the Microbee. Not the old CP/M ED.
EDITNDRA0Edits directory names (like COMMANDS for A0). Save with PUTNDR.
ERAZA0Erases files, with options to confirm each one.
ERUNA0Runs BASIC-E programs compiled by EBASIC.
EXB4Runs a list of commands from a file (a batch file), supplied with BackGrounder.
F
FC9726A0CP/M File-Commander 0.98 for the Microbee (H. Poppe): a two-panel file manager.
FFA0Finds files by name.
FILEATTRA0Shows and sets file attributes (read-only, system, archive). Version 1.6.
FILEDATEA0Lists files with their created and changed dates.
FINDFA0Finds files on all drives and user areas.
G
GWMEMORYA0Graphics demo: two black holes merge and leave a gravitational-wave "memory". Space repeats, Q quits.
H
HELPA0Shows help files: HELP for the menu, HELP name for one subject. The help files are in A15.
HELPLSHA0Shows LSH's key list. LSH runs it when you press ESC J.
I
IFA0Tests a condition (file exists, error happened…) for scripts and aliases. Version 1.6.
INITDIRA0Prepares a disk for a different kind of date stamp (P2DOS). Not needed: this card uses DateStamper.
INSTALLA1, B0Installs SuperCalc for a terminal.
INSTALOSA15Installs ZSDOS on a CP/M system from scratch. Not needed here.
J
JETLDRA0Loads Z-System parts (command packages, directory names, terminal files) into memory.
JOINA0Joins several files into one.
L
LA0, B0Compact sorted directory listing.
LBREXTA0Extracts files from a library (.LBR), uncompressing them if needed.
LBRHELPA0Reads help files stored inside a library.
LDIRA0Lists the files in a library.
LDMBEEA0Loads the Microbee clock driver and DateStamper. Run at start-up.
LDTIMDA15Old ZSDOS 1.0 clock loader. Does not work with 1.1; kept for reference.
LDTIMPA15Old ZSDOS 1.0 clock loader, P2DOS stamps. Does not work with 1.1.
LOADBGB4Loads BackGrounder ii (patched for ZSDOS 1.1, Microbee screen driver). Use the alias BGON.
LPUTA0Puts files into a library.
LSHA0The command-line shell: history on the up arrow and line editing. Started at boot. Version 1.2a.
LSHINSTA15Changes LSH's settings (prompt, keys, history size).
LXA0Runs a program stored inside a library, without extracting it.
M
MAINTAINA1, B0SuperCalc maintenance program.
MAKENDRB4Makes and edits directory-name files (BackGrounder utility).
MCOPYA0Copies files and keeps their date stamps. Version 4.7.
MENUA0One-key menu of common jobs from MENU.MNU. Ctrl-C leaves.
MKZCMA15Designs NZ-COM memory layouts (.ZCM files). For experts; run it from A0.
MSHOWA0Shows Z-System's set-up: memory map, path, terminal, error handler.
N
NAMEA0Gives a directory a name: NAME B1: LETTERS.
NULUA0Library manager: create, list, add to and extract from .LBR files.
NZBLITZA0Saves the running NZ-COM so NZLOAD can restart it faster.
NZCOMA0Loads Z-System. Runs at boot; BIGZ and NORMZ also use it.
NZCPMA15Leaves Z-System for plain ZSDOS (used by OFF / EXIT). NZCOM writes a fresh copy to A0 at each start, so you will see one there too.
NZLOADA0Fast restart of a system saved by NZBLITZ.
P
PATHA0Shows or changes the command search path.
PDTINSB3Terminal set-up program for the Turbo Pascal game on B3.
PUBLICA0Marks user areas as public, an older ZRDOS feature.
PUTBGA15, B4Makes BackGrounder's swap file. Already done.
PUTDSA15Prepares a disk for DateStamper. Already done on A: and B:.
PWDA0Lists the named directories.
Q
QB4Version 2.2, an accessory supplied with BackGrounder ii.
QUATRISB3Falling-blocks game.
R
RELOGA0Makes the system re-read the disks after a change.
REMOVEB4Removes BackGrounder (or another resident module) from memory.
RENAMEA0Renames files: RENAME NEW.TXT=OLD.TXT. Version 3.7.
ROGUEB3Dungeon adventure game.
S
SAINSTA15Set-up for SALIAS.
SALIASA0Full-screen editor for alias files. Version 1.5c.
SAVENDRA0Saves the directory names to a file (used by PUTNDR).
SC2A1, B0SuperCalc 2 spreadsheet.
SDIA1, B0SuperCalc data interchange: converts spreadsheet files to and from other formats.
SDZA0Super directory, with sizes and many options; the DIR alias uses it.
SECUREB4Protects memory used by a resident program until removed (BackGrounder utility).
SETBGB4Configures BackGrounder (screen driver, keys, memory). Already set for this card.
SETSYSA0Microbee set-up utility (disk formats and screen), written in Turbo Pascal.
SETTERMA0, B4Chooses or defines a terminal type (BackGrounder's terminal set-up).
SETUPZSTA15Builds the clock and date-stamp loader (made LDMBEE). Change to A15 first.
SHOWA0Shows Z-System's set-up (like MSHOW).
SPOOLERB4Background printing for BackGrounder.
STARTZCMA0The start-up command line run at boot (section 1).
SUBA0Runs a list of commands from a .SUB file (batch file). Version 3.5.
SYNONYMB4Gives a program a second name.
T
TCSELECTA0Picks a terminal description from a list and saves it as a .Z3T file.
TDA0Shows the date and time; TD S sets the clock.
TESTCLOKA15Tests a clock driver.
TY3ERAA0Erase as a separate program. Use ERAZ or ERA instead.
TY3RENA0Rename as a separate program. Use RENAME instead.
TY4ERAA0Small erase program. Use ERAZ or ERA instead.
TY4RENA0Small rename program. Use RENAME instead.
TY4SAVEA0Saves memory to a file (the old CP/M SAVE).
TY4SPA0Shows free disk space. SP is also built in.
U
UNARCA0Extracts files from .ARC archives.
UNCRLZHA0Uncompresses LZH-crunched files (Y in the type, such as .TYT).
UNCRUNCHA0Uncompresses crunched files (Z in the type). Alias UNC.
UNERASEA0Recovers a file erased by mistake, if done straight away.
V
VFILERA0Full-screen file manager. Version 4.3; HELP VFILER for keys.
VIEWA0Text file viewer: scroll with the arrow keys.
W
WSZA0WordStar 4 for this Microbee (section 4).
WSZBA0WordStar 4 with small buffers, for use while BackGrounder is loaded.
WSZXA0WordStar 4 that runs the next command after you leave (WSZX file;command).
X
XTCAPA15Adds extra functions to a terminal description.
Z
Z3LOCA15Shows where each part of Z-System is in memory.
ZCALA0Shows a calendar.
ZCNFGA0Changes a program's settings using its .CFG file: ZCNFG MCOPY.
ZDEA0Small, fast text editor (version 1.6). Ctrl-K X saves and exits.
ZERRA0Error handler: when a command fails it lets you fix the line, or ESC to cancel.
ZEXA0Runs a script of commands from memory, faster than SUB.
ZEX31AB4Older ZEX supplied with BackGrounder.
ZF-DIMA0ZFILER using dim text for highlights.
ZF-REVA0ZFILER using reverse video for highlights.
ZFILERA0Full-screen file manager with macros (version 1.1).
ZGOLFB3Golf patience card game.
ZLTA0Shows a text file inside a library, uncompressing it if needed.
ZPATHA0Another way to show or set the command path.
ZSCONFIGA0Shows and changes ZSDOS options (disk-change checking, stamps).
ZSVSTAMPA15Keeps a file's original creation date when a program rewrites it.
ZTIMEA0Shows the date and time (the DATE alias uses it).
ZXDA0Directory listing with file dates.

Card 36 (and 36T), 23.11.26. Tested in the VibeDrone emulator, not yet on real Microbee hardware.