1.3 KiB
1.3 KiB
Old Command Processor Documentation
This file contains documentation for the legacy CMNDPROC.BAS command processor implementation.
Overview
CMNDPROC.BAS was the original command processor module used for parsing and executing commands in BASIC. It provided command line interpretation and execution capabilities.
Key Functions
- Command parsing and tokenization
- Command execution routing
- Parameter handling
- Error checking and validation
- Built-in command implementations
Command Format
Commands followed this general format:
COMMAND [PARAM1] [PARAM2] ... [PARAMn]
Where:
- COMMAND: The command name (required)
- PARAMx: Optional parameters specific to each command
Built-in Commands
The following commands were supported:
- HELP - Display help information
- DIR - List directory contents
- CD - Change current directory
- TYPE - Display file contents
- COPY - Copy files
- DEL - Delete files
- REN - Rename files
- CLS - Clear screen
- EXIT - Exit to system
Error Handling
Error codes were returned as follows:
- 0: Success
- 1: Invalid command
- 2: Invalid parameters
- 3: File not found
- 4: Path not found
- 5: Access denied
Notes
This was replaced by newer command processor implementations but is maintained for legacy documentation purposes. s