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.
- 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.
- 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
- NZ-COM builds Z-System. The first command run is
NZCOM. It opensA0:NZCOM.LBRand 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) andNZCPM.COM(used to leave Z-System). - The start-up command runs. Z-System runs
STARTZCM, which holds this command line:nzcom myterm.z3t;ldmbee;zerr;lsh
nzcom myterm.z3tloads the terminal description, so programs know how to clear the screen and move the cursor.ldmbeeloads the Microbee clock driver and DateStamper, which records when each file was created and changed.zerrinstalls the error handler, which offers to fix a mistyped command.lshstarts the command-line shell, with history on the up arrow.
- 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
- Drives are disks:
A:andB:are on the CF card, andD:is shared with the Games side. - Each drive has user areas 0–15, like folders numbered instead of named.
B4:means drive B, user 4. - To move, type the drive and user and a colon:
B4:, thenA0:to go back. - Some areas have names:
COMMANDS(A0) andWORK(B0).PWDlists them.
The command path
When you type a program's name, Z-System looks for it in this order:
- A0
- $$ (wherever you are now)
- A15
- 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
- A file name has up to 8 letters, a dot, then up to 3:
LETTER.TXT. *matches anything:*.TXTis every .TXT file.?matches one character.- Programs end in
.COM. You type the name without the.COM.
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:
- File and screen:
TYPE(show a text file, a page at a time),ERA(erase),SP(free space),CLS,ECHO,NOTE. - Running programs from memory:
GET,GO,JUMP. - For scripts:
IF/ELSE/FI. - Type
Hto list them all.
Aliases are short names defined in ALIAS.CMD. The useful ones are:
DIR: list files.DATE/TIME: show the date and time.BGON: load BackGrounder.BIGZandNORMZ: more memory for one program, and back.OFF/EXIT: leave Z-System.REPEAT,RECURSE: repeat a command.
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, orDIR B4:. For file dates:FILEDATEorZXD.- Read a text file
TYPE FILE.TXT, orVIEW FILE.TXTto 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, thenUNERASE FILE.TXTstraight away if it was a mistake.- Manage files on screen
ZFILERorVFILER: arrow to a file and press a letter to copy, erase or view.FC9726is 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 withLBREXT, or do both inNULU. - Compressed files
UNCRUNCH(.?Z?),UNCRLZH(.?Y?),UNARC(.ARC).- Games
B3:thenROGUE,ADVENT,QUATRISorZGOLF.
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.TXTopens a file;WSZalone 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.TXTedits, 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:
- Ctrl-K D saves and goes back to the opening menu.
- Ctrl-K Q abandons the edit.
- X at the opening menu leaves WordStar.
- Ctrl-Q C jumps to the end of the file.
- Ctrl-J shows help.
5. BackGrounder (BGON)
BackGrounder ii lets you pause the program you're in, do something else, and come back to exactly where you were.
- Type
BGONonce after starting. It loads from B4: and returns you to A0. - In any program, press Ctrl-^ (Ctrl and the ^ key). The program pauses and you get a prompt ending in
}. - Run commands there:
DIR,TYPE,CALC(a calculator),JOT(a notepad),DATE. TypeHELPfor its menu. - 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:
- Programs get 45K of memory, so use
WSZBfor WordStar. - The RCP built-ins are replaced by BackGrounder's own commands.
- Don't use
BIGZorNORMZ. Restart first. - To remove BackGrounder, restart, or run
B4: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, typeNORMZ. - 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 254switch. Programs manage turbo themselves:OUT 254,1for speed,OUT 254,0before 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 orALIAS.CMD.
- Don't move
- A15
- Help files (.HLP), documents, sources and set-up tools. On the path, so its programs still run by name.
- For
SETUPZST, change toA15:first. - For
MKZCM, stay inA0:.
- For
- 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).
| Program | Where | What it does |
|---|---|---|
| A | ||
| ADVENT | B3 | Colossal Cave Adventure, the original text adventure game. |
| ARUNZ | A0 | Runs aliases (short names) from ALIAS.CMD, such as DATE and BGON. Version 1.1. |
| C | ||
| CLEDINST | A15 | Set-up for CLED, a command-line editor. Not used on this card; LSH does that job. |
| CLEDSAVE | A0 | Saves CLED's command history to a file. Not needed with LSH. |
| CMDRUN | A0 | The "command not found" helper: Z-System passes unknown commands to it to look up in ALIAS.CMD. Same program as ARUNZ. |
| CMPRH | A0 | Compares two files byte by byte and shows differences in hex. |
| COMP | A0 | Compares two files and reports whether they are the same. |
| COPY | A0 | Copies files, with options such as verify. Version 1.71 for ZSDOS. |
| CPM | A0 | Leaves Z-System and restarts plain ZSDOS (A> prompt). Works only with this card's BIOS. |
| CPSET | A0 | Shows or changes the screen and printer width and length that programs are told. |
| CRUNCH | A0 | Compresses files (crunched files have a Z in the middle of the type, such as .TZT). Alias CR. |
| D | ||
| D | A0 | Lists what is inside a library (.LBR) file. |
| DATSWEEP | A0 | File manager: tag files, then copy, erase, view or rename them. Keeps date stamps. |
| DATTIM | A1, B0 | A small utility supplied with SuperCalc. |
| DD | A0 | Disk directory with sorting and size options. Version 2.0. |
| DIFF | A0 | Compares two files and tells Z-System the result, so scripts can act on it. |
| DIRATR | A0 | Sets file attributes (read-only, system) for groups of files. |
| DSCONFIG | A15 | Configures DateStamper options. Already done for this card. |
| E | ||
| EBASIC | A0 | BASIC-E compiler: turns a .BAS program into a .INT file that ERUN runs. Manual: A15:EBASIC.DOC. |
| ED | A0 | VDE 2.30 screen editor by Eric Meyer, set up for the Microbee. Not the old CP/M ED. |
| EDITNDR | A0 | Edits directory names (like COMMANDS for A0). Save with PUTNDR. |
| ERAZ | A0 | Erases files, with options to confirm each one. |
| ERUN | A0 | Runs BASIC-E programs compiled by EBASIC. |
| EX | B4 | Runs a list of commands from a file (a batch file), supplied with BackGrounder. |
| F | ||
| FC9726 | A0 | CP/M File-Commander 0.98 for the Microbee (H. Poppe): a two-panel file manager. |
| FF | A0 | Finds files by name. |
| FILEATTR | A0 | Shows and sets file attributes (read-only, system, archive). Version 1.6. |
| FILEDATE | A0 | Lists files with their created and changed dates. |
| FINDF | A0 | Finds files on all drives and user areas. |
| G | ||
| GWMEMORY | A0 | Graphics demo: two black holes merge and leave a gravitational-wave "memory". Space repeats, Q quits. |
| H | ||
| HELP | A0 | Shows help files: HELP for the menu, HELP name for one subject. The help files are in A15. |
| HELPLSH | A0 | Shows LSH's key list. LSH runs it when you press ESC J. |
| I | ||
| IF | A0 | Tests a condition (file exists, error happened…) for scripts and aliases. Version 1.6. |
| INITDIR | A0 | Prepares a disk for a different kind of date stamp (P2DOS). Not needed: this card uses DateStamper. |
| INSTALL | A1, B0 | Installs SuperCalc for a terminal. |
| INSTALOS | A15 | Installs ZSDOS on a CP/M system from scratch. Not needed here. |
| J | ||
| JETLDR | A0 | Loads Z-System parts (command packages, directory names, terminal files) into memory. |
| JOIN | A0 | Joins several files into one. |
| L | ||
| L | A0, B0 | Compact sorted directory listing. |
| LBREXT | A0 | Extracts files from a library (.LBR), uncompressing them if needed. |
| LBRHELP | A0 | Reads help files stored inside a library. |
| LDIR | A0 | Lists the files in a library. |
| LDMBEE | A0 | Loads the Microbee clock driver and DateStamper. Run at start-up. |
| LDTIMD | A15 | Old ZSDOS 1.0 clock loader. Does not work with 1.1; kept for reference. |
| LDTIMP | A15 | Old ZSDOS 1.0 clock loader, P2DOS stamps. Does not work with 1.1. |
| LOADBG | B4 | Loads BackGrounder ii (patched for ZSDOS 1.1, Microbee screen driver). Use the alias BGON. |
| LPUT | A0 | Puts files into a library. |
| LSH | A0 | The command-line shell: history on the up arrow and line editing. Started at boot. Version 1.2a. |
| LSHINST | A15 | Changes LSH's settings (prompt, keys, history size). |
| LX | A0 | Runs a program stored inside a library, without extracting it. |
| M | ||
| MAINTAIN | A1, B0 | SuperCalc maintenance program. |
| MAKENDR | B4 | Makes and edits directory-name files (BackGrounder utility). |
| MCOPY | A0 | Copies files and keeps their date stamps. Version 4.7. |
| MENU | A0 | One-key menu of common jobs from MENU.MNU. Ctrl-C leaves. |
| MKZCM | A15 | Designs NZ-COM memory layouts (.ZCM files). For experts; run it from A0. |
| MSHOW | A0 | Shows Z-System's set-up: memory map, path, terminal, error handler. |
| N | ||
| NAME | A0 | Gives a directory a name: NAME B1: LETTERS. |
| NULU | A0 | Library manager: create, list, add to and extract from .LBR files. |
| NZBLITZ | A0 | Saves the running NZ-COM so NZLOAD can restart it faster. |
| NZCOM | A0 | Loads Z-System. Runs at boot; BIGZ and NORMZ also use it. |
| NZCPM | A15 | Leaves 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. |
| NZLOAD | A0 | Fast restart of a system saved by NZBLITZ. |
| P | ||
| PATH | A0 | Shows or changes the command search path. |
| PDTINS | B3 | Terminal set-up program for the Turbo Pascal game on B3. |
| PUBLIC | A0 | Marks user areas as public, an older ZRDOS feature. |
| PUTBG | A15, B4 | Makes BackGrounder's swap file. Already done. |
| PUTDS | A15 | Prepares a disk for DateStamper. Already done on A: and B:. |
| PWD | A0 | Lists the named directories. |
| Q | ||
| Q | B4 | Version 2.2, an accessory supplied with BackGrounder ii. |
| QUATRIS | B3 | Falling-blocks game. |
| R | ||
| RELOG | A0 | Makes the system re-read the disks after a change. |
| REMOVE | B4 | Removes BackGrounder (or another resident module) from memory. |
| RENAME | A0 | Renames files: RENAME NEW.TXT=OLD.TXT. Version 3.7. |
| ROGUE | B3 | Dungeon adventure game. |
| S | ||
| SAINST | A15 | Set-up for SALIAS. |
| SALIAS | A0 | Full-screen editor for alias files. Version 1.5c. |
| SAVENDR | A0 | Saves the directory names to a file (used by PUTNDR). |
| SC2 | A1, B0 | SuperCalc 2 spreadsheet. |
| SDI | A1, B0 | SuperCalc data interchange: converts spreadsheet files to and from other formats. |
| SDZ | A0 | Super directory, with sizes and many options; the DIR alias uses it. |
| SECURE | B4 | Protects memory used by a resident program until removed (BackGrounder utility). |
| SETBG | B4 | Configures BackGrounder (screen driver, keys, memory). Already set for this card. |
| SETSYS | A0 | Microbee set-up utility (disk formats and screen), written in Turbo Pascal. |
| SETTERM | A0, B4 | Chooses or defines a terminal type (BackGrounder's terminal set-up). |
| SETUPZST | A15 | Builds the clock and date-stamp loader (made LDMBEE). Change to A15 first. |
| SHOW | A0 | Shows Z-System's set-up (like MSHOW). |
| SPOOLER | B4 | Background printing for BackGrounder. |
| STARTZCM | A0 | The start-up command line run at boot (section 1). |
| SUB | A0 | Runs a list of commands from a .SUB file (batch file). Version 3.5. |
| SYNONYM | B4 | Gives a program a second name. |
| T | ||
| TCSELECT | A0 | Picks a terminal description from a list and saves it as a .Z3T file. |
| TD | A0 | Shows the date and time; TD S sets the clock. |
| TESTCLOK | A15 | Tests a clock driver. |
| TY3ERA | A0 | Erase as a separate program. Use ERAZ or ERA instead. |
| TY3REN | A0 | Rename as a separate program. Use RENAME instead. |
| TY4ERA | A0 | Small erase program. Use ERAZ or ERA instead. |
| TY4REN | A0 | Small rename program. Use RENAME instead. |
| TY4SAVE | A0 | Saves memory to a file (the old CP/M SAVE). |
| TY4SP | A0 | Shows free disk space. SP is also built in. |
| U | ||
| UNARC | A0 | Extracts files from .ARC archives. |
| UNCRLZH | A0 | Uncompresses LZH-crunched files (Y in the type, such as .TYT). |
| UNCRUNCH | A0 | Uncompresses crunched files (Z in the type). Alias UNC. |
| UNERASE | A0 | Recovers a file erased by mistake, if done straight away. |
| V | ||
| VFILER | A0 | Full-screen file manager. Version 4.3; HELP VFILER for keys. |
| VIEW | A0 | Text file viewer: scroll with the arrow keys. |
| W | ||
| WSZ | A0 | WordStar 4 for this Microbee (section 4). |
| WSZB | A0 | WordStar 4 with small buffers, for use while BackGrounder is loaded. |
| WSZX | A0 | WordStar 4 that runs the next command after you leave (WSZX file;command). |
| X | ||
| XTCAP | A15 | Adds extra functions to a terminal description. |
| Z | ||
| Z3LOC | A15 | Shows where each part of Z-System is in memory. |
| ZCAL | A0 | Shows a calendar. |
| ZCNFG | A0 | Changes a program's settings using its .CFG file: ZCNFG MCOPY. |
| ZDE | A0 | Small, fast text editor (version 1.6). Ctrl-K X saves and exits. |
| ZERR | A0 | Error handler: when a command fails it lets you fix the line, or ESC to cancel. |
| ZEX | A0 | Runs a script of commands from memory, faster than SUB. |
| ZEX31A | B4 | Older ZEX supplied with BackGrounder. |
| ZF-DIM | A0 | ZFILER using dim text for highlights. |
| ZF-REV | A0 | ZFILER using reverse video for highlights. |
| ZFILER | A0 | Full-screen file manager with macros (version 1.1). |
| ZGOLF | B3 | Golf patience card game. |
| ZLT | A0 | Shows a text file inside a library, uncompressing it if needed. |
| ZPATH | A0 | Another way to show or set the command path. |
| ZSCONFIG | A0 | Shows and changes ZSDOS options (disk-change checking, stamps). |
| ZSVSTAMP | A15 | Keeps a file's original creation date when a program rewrites it. |
| ZTIME | A0 | Shows the date and time (the DATE alias uses it). |
| ZXD | A0 | Directory listing with file dates. |
Card 36 (and 36T), 23.11.26. Tested in the VibeDrone emulator, not yet on real Microbee hardware.