mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:43:15 -06:00
* added hack to handle tunes * quiet clean * added chmod for execution * suppress warnings * Multi-boot fixes * the windows build somehow thinks that these filesystems are cpm3. * credit and primitive instructions * Update sd.asm Cosmetic fix. * make compile shut up about conditionals * Add bin2asm for linus and update build to process font files under linix * fixed quoted double quote bug, added tests * added tests * added bin2asm for font file source creation * Revert linux bin2asm font stuff * added rule for font source generation * build fonts * added directory mapping cache. if the same directory is being hit as last run, we don't need to rebuild the map. will likely break if you are running more than one at a time, in that the cache will be ineffective. also, if the directory contents change, this will also break. * removed strip. breaks osx * added directory tag so . isn't matched all over the place * added real cache validation * fixed build * this file is copied from optdsk.lib or optcmd.lib * install to ../HBIOS * prerequisite verbosity * diff soft failure and casefn speedup * added lzsa * added lzsa * removed strip. breaks on osx * added clobber * added code to handle multiple platform rom builds with rom size override * added align and 0x55 hex syntax * default to hd64180 * added N8 capability * added SBC_std.rom to default build * added support for binary diff * diff fixes * clean, identical build. font source generator emitted .align. this does not match the windows build * Upgrade NZCOM to latest * Misc. Cleanup * fixed expression parser bug : ~(1|2) returned 0xfe * added diff build option * Update Makefile Makefile enhancement to better handle ncurses library from Bob Dunlop. * Update sd.asm Back out hack for uz80as now that Curt fixed it. * Misc. Cleanup * UNA Catchup UNA support was lacking some of the more recent behavior changes. This corrects most of it. * Add github action for building RomWBW * Bump Pre-release Version * Update build.yml Added "make clean" which will remove temporary files without removing final binary outputs. * Update Makefile Build all ROM variants by default in Linux/Mac build. * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update Makefile * Update for GitHub Build Case issue in TASM includes showing up in GitHub build. This should correct that. * Added an gitignore files to exclude generated files * Removed Tunes/clean.cmd and Tunes/ReadMe.txt - as make clean removes them * Build.sh: marked as executable chmod +x Build.sh * Fix to HBIOS/build.sh When adding files to rom disk, if files were missing, it would error out. It appears the intent is to skip non-existing files. Updated to log out correctly for missing files - and continue operation. * Update Microsoft NASCOM BASIC.docx Nascom manual, text version by Jan S (full name unknown) * Fix issue with Apps/Tune not making If dest directory does not exist, fails to make Apps * Create ReadMe.txt * Update Makefile * Update Build.sh * Make .gitignores for Tools/unix more specific * cpmtools Update Updated cpmtools applications (Windows only). Removed hack in diskdefs that is no longer required. * HBIOS Proxy Temp Stack Enhancement Reuse the bounce buffer area as the temporary stack space required briefly in HBX_INVOKE when transitioning banks. Increases size of temporary stack space to 64 bytes. * Update ReadMe.txt * HBIOS - clean up TMPSTK * Update hbios.asm Minor cosmetic changes. * Build Process Updates Minor udpates to build process to improve consistency between Windows and Mac/Linux builds. * Update hbios.asm Add improved interrupt protection to HBIOS PEEK, POKE, and BNKCPY functions. * hbios - wrap hbx_bnkcpy * hbios - adjust hbx_peek hbx_poke guards * Update hbios.asm Adjusted used of DI/EI for PEEK and POKE to regain a bit of INTSTK space. Added code so that HB_INVBNK can be used as a flag indicating if HBIOS is active, $FF is inactive, anything else means active. * Add HBIOS MuTex * Initial Nascom basic ecb-vdu graphics set and reset for 80x25b screen with 256 character mod * Finalize Pre-release 34 Final support for FreeRTOS * Update nascom.asm Optimization, cleanup, tabs and white spaces * IDE & PPIDE Cleanup * Clean up Make version include files common. * Update Makefile * Update Makefile * Build Test * Build Test * Build Fixes * Update nascom.asm Cleanup * Update nascom.asm Optimization * hbios - temp stack tweak * Update hbios.asm Comments on HBX_BUF usage. * Update nascom.asm Optimization * Update nascom.asm Setup ECB-VDU build option, remove debug code * Update nascom.asm Set default build. update initialization * Update nascom.asm Make CLS clear vdu screen * Update nascom.asm Fixup top screen line not showing * Add SC131 Support Also cleaned up some ReadMe files. * HBIOS SCZ180 - remove mutex special files * HBIOS SCZ180 - adjust mutex comment * Misc. Cleanup Includes some minor improvements to contents in some disk images. * Delete FAT.COM Changing case of FAT.COM extension to lowercase. * Create FAT.com Completing change of case in extension of FAT.com. * Update Makefile Remove ROM variants that just have the HBIOS MUTEX enabled. Users can easily enable this in a custom build. * Cleanup Removed hack from Images Makefile. Fixed use of DEFSERCFG in various places. * GitHub CI Updates Adds automation of build and release assets upon release. * Prerelease 36 General cleanup * Build Script Cleanups * Config File Cleanups * Update RomWBW Architecture General refresh for v2.9.2 * Update vdu.asm Removed a hack in VDU driver that has existed for 8 years. :-) * Fix CONSOLE Constant Rename CIODEV_CONSOLE constant to CIO_CONSOLE because it is a unit code, not a device type code. Retabify TastyBasic. * Minor Bug Fixes - Disk assignment edge case - CP/M 3 accidental fall thru - Cosmetic updates * Update util.z80 * Documentation Cleanup * Documentation Update * Documentation Update * Documentation Updates * Documentation Updates * Create Common.inc * Documentation Updates * Documentation Updates * doc - a few random fixes * Documentation Cleanup * Fix IM 0 Build Error in ACIA * Documentation Updates * Documentation Cleanup * Remove OSLDR The OSLDR application was badly broken and almost impossible to fix with new expanded OS support. * Bug Fixes - Init RAM disk at boot under CP/M 3 - Fix ACR activation in TUNE * FD Motor Timeout - Made FDC motor timeout smaller and more consistent across different speed CPUs - Added "boot" messaging to RTC * Cleanup * Cleanup - Fix SuperZAP to work under NZCOM and ZPM3 - Finalize standard config files * Minor Changes - Slight change to ZAP configuration - Added ZSDOS.ZRL to NZCOM image * ZDE Upgrade - Upgraded ZDE 1.6 -> 1.6a * Config File Tuning * Pre-release for Testing * cfg - mutex consistent config language * Bump to Version 3.0 * Update SD Card How-To Thanks David! * update ReadMe.md Remove some odd `\`. * Update ReadMe.txt * Update ReadMe.md * Update Generated Doc Files * Improve XModem Startup - Extended startup timeout for XM.COM so that it doesn't timeout so quickly while host is selecing a file to send. - Updated SD Card How-To from David Reese. * XModem Timing Refinements * TMS Driver Z180 Improvements - TMS driver udpated to insert Z180 I/O waitstates internally so other code can run at full speed. - Updated How-To documents from David. - Fixed TUNE app to properly restore Z180 I/O waitstates after manipulating them. * CLRDIR and ZDE updates - CLRDIR has been updated by Max Scane for CP/M 3 compatibility. - A minor issue in the preconfigured ZDE VT100 terminal escape sequences was corrected. * Fix Auto CRT Console Switch on CP/M 3 * Handle lack of RTC better DSRTC driver now correctly returns an error if there is no RTC present. * Minor RTC Updates * Finalize v3.0.1 Cleanup release for v3.0 * New ROMLDR and INTRTC driver - Refactored romldr.asm - Added new periodic timer based RTC driver * CP/M 3 Date Hack - Hack to allow INTRTC to increment time without destroying the date * Update romldr.asm Work around minor Linux build inconsistency * Update Apps for New Version * Revert "Update Apps for New Version" This reverts commitad80432252. * Revert "Update romldr.asm" This reverts commit4a9825cd57. * Revert "CP/M 3 Date Hack" This reverts commit153b494e61. * Revert "New ROMLDR and INTRTC driver" This reverts commitd9bed4563e. * Start v3.1 Development * Update FDISK80.COM Updated FDISK80 to allow reserving up to 256 slices. * Update sd.asm For Z180 CSIO, ensure that xmit is finished, before asserting CS for next transaction. * Add RC2014 UART, Improve SD protocol fix - RC2014 and related platforms will autodetect a UART at 0xA0 and 0xA8 - Ensure that CS fully brackets all SD I/O * ROMLDR Improvements .com files can now be started from CP/M and size of .com files has been reduced so they always fit. * Update commit.yml Run commit build in all branches * Update commit.yml Run commit build for master and dev branches * Improved clock driver auto-detect/fallback * SIO driver now CTC aware The SIO driver can now use a CTC (if available) to provide much more flexible baud rate programming. * CTC driver fine tuning * Update xmdm125.asm Fixed a small issue in core XM125 code that caused a file write error message to not be displayed when it should be. * CF Card compatibility improvement Older CF Cards did not reset IDE registers to defaults values when reset. Implemented a work around. * Update ACIA detection ACIA should no longer be detected if there is also a UART module in the system. * Handle CTC anomaly Small update to accommodate CTC behavior that occurs when the CTC trigger is more than half the CTC clock. * Update acia.asm Updated ACIA detection to use primary ACIA port instead of phantom port. * Update acia.asm Fix bug in ACIA detection. Thanks Alan! * MacOS Build Improvement Build script updated to improve compatibility with MacOS. Credit to Fredrik Axtelius for this. * HBIOS Makefile - use env vars for target Allow build ROM targets to be restricted to just one platform thru use of ENV vars: ROM_PLATFORM - if defined to a known platform, only this platform is build - defaults to std config ROM_CONFIG - sets the desired platform config - defaults to std if the above ENVs are not defined, builds all ROMs * Added some more gitignores * Whitespace changes (crlf) * HBIOS: Force the assembly to fail for vdu drivers if function table count is not correct * Whitespace: trailing whitespaces * makefile: updated some make scripts to use when calling subdir makefiles * linux build: update to Build.sh fix for some platforms The initialization of the Rom dat file used the pipe (|) operator to build an initial empty file. But the pipe operator | may sometimes return a non-zero exit code for some linux platforms, if the the streams are closed before dd has fully processed the stream. This issue occured on a travis linux ubuntu image. Solution was to change to redirection. * Bump version * Enhance CTC periodic timer Add ability to use TIMER mode in CTC driver to generate priodic interrupts. * HBIOS: Added support for sound drivers New sound driver support with initial support for the SN76489 chip New build configuration entry: * SN76489ENABLE Ports are currently locked in with: * SN76489_PORT_LEFT .EQU $FC ; PORTS FOR ACCESSING THE SN76489 CHIP (LEFT) * SN76489_PORT_RIGHT .EQU $F8 ; PORTS FOR ACCESSING THE SN76489 CHIP (LEFT) * Miscellaneous Cleanup No functional changes. Co-authored-by: curt mayer <curt@zen-room.org> Co-authored-by: Wayne Warthen <wwarthen@gmail.com> Co-authored-by: ed <linux@maidavale.org> Co-authored-by: Dean Netherton <dnetherton@dius.com.au> Co-authored-by: ed <ed@maidavale.org> Co-authored-by: Phillip Stevens <phillip.stevens@gmail.com> Co-authored-by: Dean Netherton <dean.netherton@gmail.com>
515 lines
19 KiB
Plaintext
515 lines
19 KiB
Plaintext
|
||
; File: Z34RCP.LIB
|
||
; Description: Resident Command Package (RCP) for ZCPR34
|
||
; Version: 1.4
|
||
; Author: Carson Wilson
|
||
; Date: October 4, 1989
|
||
; Changes: Added PUSER0 equate suggested by Rob Friefeld.
|
||
;
|
||
; Version: 1.3
|
||
; Author: Carson Wilson
|
||
; Date: September 29, 1989
|
||
; Changes: Added CLED (Command Line Editor Shell) command options
|
||
; and equates.
|
||
;
|
||
; Version: 1.2
|
||
; Author: Carson Wilson
|
||
; Date: August 11, 1989
|
||
; Changes: Removed several "quiet" conditional assembly equates as
|
||
; we are now sensing the QUIET flag instead.
|
||
; Changed default of WHLQUIET to false.
|
||
;
|
||
; Version: 1.1
|
||
; Author: Carson Wilson
|
||
; Date: July 10, 1989
|
||
; Changes: Changed 'S' command name to 'SP'.
|
||
; Removed wheel protection from 'Q' command and set QQUIET
|
||
; on by default.
|
||
; Changed command order.
|
||
|
||
; Version: 1.0
|
||
; Author: Carson Wilson
|
||
; Date: June 15, 1988
|
||
|
||
; This is the configuration file for the ZCPR Version 3.4 resident command
|
||
; package. You should read through this file and set the equates according
|
||
; to the features you want to implement. Since most systems have a limited
|
||
; amount of space for the resident command package, it will probably be
|
||
; impossible to include all features.
|
||
|
||
; If you are using an SLR or equivalent assembler, you will be prompted
|
||
; at assembly time for which commands to include in the RCP.
|
||
|
||
;=============================================================================
|
||
;
|
||
; A S S E M B L Y O P T I O N S
|
||
;
|
||
;=============================================================================
|
||
|
||
; SLR controls whether special pseudo-ops such as ".printx" and ".accept",
|
||
; and complex macros are used at assembly time. For SLR Systems or compatible
|
||
; macro assemblers, set this equate to true.
|
||
|
||
SLR equ false
|
||
|
||
; RCPTYPE is the final character of the RCP name in the H(elp) command,
|
||
; and determines the order in which commands are added.
|
||
|
||
if SLR
|
||
Y equ true
|
||
N equ false
|
||
H equ 'H'
|
||
F equ 'F'
|
||
|
||
.accept 'Enter "F" for floppy, "H" for fixed disk version: ',rcptype
|
||
else
|
||
rcptype equ 'H' ; Floppy disk version
|
||
endif ; SLR
|
||
|
||
; ZRL controls whether named common labels are used in the code. To create
|
||
; absolute code, modify RCPBASE.LIB to reflect your system's addresses, set
|
||
; ZRL to false and instruct your assembler to generate absolute code (either
|
||
; a .COM or .HEX file).
|
||
;
|
||
; To create a relocatable file for use with Bridger Mitchell's JetLDR or
|
||
; Joe Wright's NZCOM, you must use an assembler which recognizes named
|
||
; common blocks. If your assembler has this capability, set ZRL to true
|
||
; and instruct the assembler to generate relocatable (.REL) code.
|
||
|
||
ZRL equ true
|
||
|
||
;=============================================================================
|
||
;
|
||
; M A C R O S
|
||
;
|
||
;=============================================================================
|
||
|
||
; SLR assemblers allow selection of options during assembly.
|
||
|
||
if SLR
|
||
|
||
select macro option default comment
|
||
.accept comment,option ; Prompt user for selection
|
||
endm
|
||
|
||
.printx
|
||
.printx Answer "Y" to include, "N" to exclude commands:
|
||
.printx
|
||
|
||
else
|
||
|
||
select macro option default comment
|
||
option equ default ; Use selections from file
|
||
endm
|
||
endif ; SLR
|
||
|
||
;=============================================================================
|
||
;
|
||
; R E S I D E N T C O M M A N D S S E L E C T I O N
|
||
;
|
||
;=============================================================================
|
||
|
||
; Commands to include in the resident command package
|
||
|
||
; There are some interrelations between a number of the possible resident
|
||
; commands. Some are so close (LIST and TYPE) that a single equate controls
|
||
; both functions. Others like DIR and ERA share code (both display file
|
||
; listings). It is efficient to select or deselect them together.
|
||
|
||
; If you are using an SLR or compatible assembler, you will be prompted
|
||
; at assembly time for command selections. Otherwise, select commands to
|
||
; be included by setting each SELECT macro below to yes or no.
|
||
|
||
select CLEDON no 'CLED - command line editor shell? '
|
||
select CLSON yes 'CLS - clear screen? '
|
||
select RESON yes 'R - reset disk system? '
|
||
select SPACEON yes 'SP - show space remaining on disk? '
|
||
|
||
if RCPTYPE='F' ; Assemble in floppy order
|
||
select DIRON yes 'D - disk directory? '
|
||
select ERAON yes 'ERA - erase files? '
|
||
select ECHOON yes 'ECHO - send text to screen or printer? '
|
||
select RENON yes 'REN - rename files? '
|
||
select CPON yes 'CP - copy file? '
|
||
select LTON yes 'TYPE - display file on console? '
|
||
select POKEON yes 'POKE - set memory? '
|
||
select PEEKON yes 'PEEK - view memory? '
|
||
else ; Assemble in fixed-disk order
|
||
select ECHOON yes 'ECHO - send text to screen or printer? '
|
||
select POKEON yes 'POKE - set memory? '
|
||
select PEEKON yes 'PEEK - view memory? '
|
||
select QUIETON yes 'Q - set or clear quiet status? '
|
||
select DIRON yes 'D - disk directory? '
|
||
select ERAON no 'ERA - erase files? '
|
||
select RENON no 'REN - rename files? '
|
||
select CPON no 'CP - copy file? '
|
||
select LTON yes 'TYPE - display file on console? '
|
||
endif ; RCPTYPE='F'
|
||
|
||
if LTON
|
||
select LISTON no 'LIST - list to printer? '
|
||
else ; allowed only if TYPE is enabled
|
||
LISTON equ no
|
||
endif
|
||
|
||
if RCPTYPE='F' ; Assemble in floppy order
|
||
select QUIETON yes 'Q - set or clear quiet status? '
|
||
endif
|
||
|
||
select PROTON no 'PROT - set file attributes? '
|
||
select NOTEON no 'NOTE - command-line comment? '
|
||
select REGON no 'REG - set and display user registers? '
|
||
select WHLON no 'WHL - set or clear wheel status? '
|
||
select PORTON no 'PORT - view and set I/O ports? '
|
||
|
||
;=============================================================================
|
||
;
|
||
; W H E E L P R O T E C T I O N
|
||
;
|
||
;=============================================================================
|
||
|
||
; To prevent unauthorized users from performing certain dangerous or sensitive
|
||
; operations on the computer, ZCPR34 provides the capability of disabling the
|
||
; operation of certain commands when the wheel byte is off. In ZCPR30, an
|
||
; attempt to use one of these wheel-protected commands when the wheel byte was
|
||
; off resulted in an error message. In ZCPR34 things work differently. In the
|
||
; same situation, the command simply disappears. In this way a transient
|
||
; program or extended command processor function can take over and deal with
|
||
; the attempt to use the command in a much more flexible way.
|
||
;
|
||
; Wheel-protected commands in ZCPR30 had extra code to intercept the function
|
||
; and disable it. In ZCPR34, wheel protection is enabled and disabled in a
|
||
; different way. To wheel-protect a command the high bit of the first
|
||
; character in the command name is set. The command table scanner in ZCPR34
|
||
; will not recognize these commands when the wheel byte is off. Since the same
|
||
; command scanner is used to scan the commands in the RCP and FCP (flow control
|
||
; package), commands there can be wheel protected in the same way. For skilled
|
||
; computer operators it is very easy to use a debugger, file patcher, or disk
|
||
; utility to enable and disable wheel protection without having to reassemble
|
||
; the CPR, RCP, or FCP.
|
||
;
|
||
; Because of the way the command scanner works, once wheel protection is
|
||
; implemented in the CCP, there is no further code penalty in protecting RCP
|
||
; commands. Therefore, we recommend protecting all possibly sensitive
|
||
; commands or none.
|
||
|
||
wcled equ no ; CLED
|
||
wcp equ yes ; CP
|
||
wdir equ no ; DIR
|
||
wera equ yes ; ERA
|
||
wlist equ yes ; LIST
|
||
wpeek equ yes ; PEEK
|
||
wpoke equ yes ; POKE
|
||
wport equ yes ; PORT
|
||
wprot equ yes ; PROT
|
||
wquiet equ no ; QUIET
|
||
wreg equ yes ; REG
|
||
wren equ yes ; REN
|
||
wspop equ yes ; SPOP
|
||
wtype equ yes ; TYPE
|
||
whrc equ no ; H
|
||
|
||
wheel defl wcp or wdir or wera or wlist or wpeek or wpoke or wport
|
||
wheel defl wheel or wprot or wreg or wren or wtype or whrc
|
||
|
||
;=============================================================================
|
||
;
|
||
; C O M M A N D O P T I O N S
|
||
;
|
||
;=============================================================================
|
||
|
||
; Options affecting several commands
|
||
|
||
; DSORT includes code to sort file entries for the D, TYPE, LIST, ERA,
|
||
; and PROT commands.
|
||
|
||
dsort equ yes
|
||
|
||
; LEFTRIGHT affects the COPY and RENAME commands. If yes, add code to allow
|
||
; CP and REN operations work from left to right, and CP to accept a
|
||
; single filespec as its source.
|
||
; Examples:
|
||
; B0>ren b1:old.nam new.nam Renames B1:old.nam to B1:new.nam
|
||
; B0>cp a15:that.fil Copies A15:that.fil to B0:
|
||
; B0>cp source.fil dest.fil Copies source.fil to dest.fil
|
||
|
||
leftright equ yes
|
||
|
||
; If LEFTRIGHT is yes, setting TESTEQ to yes also allows CP and REN commands
|
||
; to be processed from right to left if they contain an equal sign ("=").
|
||
; Costs 11 bytes.
|
||
; Example:
|
||
; B0>cp dest.fil=source.fil Copies source.fil to dest.fil
|
||
|
||
testeq equ yes
|
||
|
||
;-----------------------------------------------------------------------------
|
||
|
||
; 'CLS' command
|
||
|
||
; This command clears the console screen. It can either use a fixed string
|
||
; (for shorter code if the same terminal is always used) or use the TCAP
|
||
; entry for automatic adaptation to any terminal.
|
||
|
||
clstcap equ true ; Use TCAP for clear-screen string
|
||
|
||
; If CLSTCAP is not enabled, then the string below must be provided and
|
||
; it must end with a character with the high bit set
|
||
|
||
if not clstcap
|
||
clsstr macro
|
||
db 'Z'-'@'+80h ; Control-Z to clear screen
|
||
endm
|
||
endif ;not clstcap
|
||
|
||
typecls equ true ; Clear between screens when typing files
|
||
|
||
;-----------------------------------------------------------------------------
|
||
|
||
; 'CP' command
|
||
|
||
; This command copies a single file. The destination file can have a different
|
||
; name from the source file. Set the size of the memory buffer in K below (do
|
||
; not change the second definition). The copy buffer is placed at the top of
|
||
; the TPA, where it will generally not interfere with subsequent use of the GO
|
||
; command to rerun a program loaded in the TPA.
|
||
|
||
cpblocks defl 16 ; Size of copy buffer in K
|
||
|
||
cpblocks defl cpblocks * 8 ; Convert to number of records
|
||
|
||
; If you will be using a BDOS or RSX which supports new functions 102 (Get
|
||
; Stamp) and 103 (Set Stamp), set STPCALL to true, and datestamps of files
|
||
; will be preserved across copies. The "last access" stamps of both copies
|
||
; are set to the time the copy took place if access stamping is enabled.
|
||
|
||
stpcall equ true ; Copy file stamps with functions 102/3
|
||
|
||
;-----------------------------------------------------------------------------
|
||
|
||
; 'DIR' command
|
||
|
||
; This command displays a sorted listing of the files in a directory. The
|
||
; file name buffer is allocated at the top of the TPA so as not to modify
|
||
; any program loaded in low memory. Consequently, the size of the buffer
|
||
; must be set in advance.
|
||
|
||
|
||
maxdirs equ 256 ; Maximum number of names in directory buffer
|
||
|
||
nosys equ yes ; suppress 'A' and 'S' options if wheel off
|
||
|
||
slashchk equ yes ; allow "DIR /S" or "DIR /A" formats (costs
|
||
; about 12 bytes)
|
||
|
||
allflag equ 'A' ; Option character for showing
|
||
; all file (both SYS and DIR)
|
||
sysflag equ 'S' ; Option character for showing
|
||
; SYS files only
|
||
sortnt equ yes ; Sort file by name then type
|
||
wide equ yes ; Make display for 80-column screen
|
||
fence equ '|' ; Character to use as fence between columns
|
||
; ..if WIDE is false.
|
||
|
||
;-----------------------------------------------------------------------------
|
||
|
||
; 'ECHO' command
|
||
|
||
; This command sends characters to the console or list device. If ECHOLST is
|
||
; enabled, then code is included for sending characters to the LST device.
|
||
; Characters normally go the the console device and are normally upper or lower
|
||
; case depending on the setting of UPCASE. The command line can have special
|
||
; command sequences to toggle the case of the output and to change the
|
||
; destination between the console and printer. Any other character following
|
||
; the command character will be sent as is. For the normal setting of the
|
||
; equates below (upcase/yes, cmdchar/%, prtchar/P, crtchar/C, lcasech/>,
|
||
; and ucasech/<) an example command line would be:
|
||
; A0:ROOT>ECHO T%>HIS IS A TEST^M^J^IDONE%PONE, TWO, %<THREE
|
||
; The following text would be echoed to the console (inlcuding carriage return,
|
||
; linefeed, and tab characters, '|' indicates the left margin):
|
||
; |This is a test
|
||
; | done
|
||
; The string "one, two, THREE" would be sent to the printer.
|
||
|
||
echolst equ yes ; Allow ECHO to LST device
|
||
|
||
upcase equ yes ; Initial case of output
|
||
|
||
cmdchar equ '%' ; Character to flag case change
|
||
|
||
prtchar equ 'P' ; Character to start sending output to
|
||
; the printer (must be upper case)
|
||
crtchar equ 'C' ; Character to start sending output to
|
||
; the CRT (must be upper case)
|
||
ucasechar equ '<' ; Character after CASECHAR that toggles
|
||
; subsequent output to upper case
|
||
lcasechar equ '>' ; Character after CASECHAR that toggles
|
||
; subsequent output to lower case
|
||
|
||
; ----------------------------------------------------------------------------
|
||
|
||
; 'H' command
|
||
|
||
; This command displays a list of the resident commands implemented in the
|
||
; system. FCP, CPR, and RCP commands can be displayed. The basic command is
|
||
; not optional; it is always included.
|
||
|
||
listcpr equ yes ; Include list of CPR-resident commands in
|
||
; display (highly recommended)
|
||
|
||
listfcp equ yes ; Include list of FCP-resident commands in
|
||
; display (recommended if there is room)
|
||
|
||
noshow equ yes ; Suppress listing commands that are wheel-
|
||
; restricted unless wheel byte is set (i.e.,
|
||
; don't show commands that won't run)
|
||
|
||
cmdsline equ 5 ; Number of commands on each line of display
|
||
|
||
cmdspace equ 8 ; Space in display for each command name
|
||
|
||
;-----------------------------------------------------------------------------
|
||
|
||
; 'LIST' and 'TYPE' commands
|
||
|
||
pgdflt equ yes ; Default to paging of console output
|
||
|
||
pgdflg equ 'P' ; Character to toggle paging status
|
||
|
||
;----------------------------------------
|
||
|
||
; 'PEEK' command
|
||
|
||
peekhdr equ yes ; Label columns in PEEK display
|
||
|
||
peekbdr equ yes ; Include line of hyphens under labels
|
||
|
||
peekchk equ yes ; If yes, the ending address will be tested to
|
||
; prevent overflow past FFFF (costs 5 bytes)
|
||
|
||
peeklen equ 127 ; Display 1 record (128 bytes) as default.
|
||
; PEEK displays in increments of 16 bytes.
|
||
; You may set PEEKLEN for 0 to 65525.
|
||
|
||
;----------------------------------------
|
||
|
||
; 'S' command
|
||
|
||
; Print disk space with other commands (recommended)
|
||
|
||
dirsp equ true ; Show space after DIR
|
||
erasp equ true ; Show space after ERA
|
||
cpsp equ true ; Show space after CP
|
||
resetsp equ true ; Show space after R
|
||
|
||
;----------------------------------------
|
||
|
||
; 'WHL' command
|
||
|
||
whlquiet equ false ; If true, don't report wheel state with
|
||
; .."WHL password" command (costs 1 byte)
|
||
|
||
wpass macro
|
||
db 'SYSTEM '
|
||
endm
|
||
|
||
;----------------------------------------
|
||
|
||
; 'CLED' command
|
||
;
|
||
; Command line editing takes place in the line buffer. It does not take up
|
||
; room in the RCP. The editor will handle a 255 byte line. Although that
|
||
; is larger than the maximum command line size, it allows you to edit a long
|
||
; line without deleting something first. The history is kept inside the RCP,
|
||
; so its size will depend upon how many other RCP commands are enabled.
|
||
; HISTSIZE should be at least as large as the multiple command line buffer
|
||
; (204 bytes).
|
||
|
||
lbufwid equ 255 ; Line buffer size, byte
|
||
histsize equ 204 ; History buffer size, word
|
||
|
||
; CLERA controls whether to null the internal history when CLED is exited, or
|
||
; to leave it for the next run. Secure systems will want to set it to YES.
|
||
|
||
clera equ no ; Erase history on terminating shell
|
||
|
||
; CLMIN sets the cutoff for discarding short lines from history recording.
|
||
; A setting of 3 would discard a command such as DIR.
|
||
|
||
clmin equ 5 ; Discard lines which do not exceed this
|
||
|
||
clins equ yes ; Initial insert state ON
|
||
clsav equ yes ; Initial history recording ON
|
||
|
||
; The appearance of the command line prompt may include the system time if a
|
||
; DateStamper or ZS/ZDDOS clock is implemented. The DU:DIR separator character
|
||
; can be changed to indicate that CLED is running.
|
||
|
||
dudir_sep equ '/' ; DU:DIR separator char
|
||
puser0 equ no ; Print user #0 in prompt
|
||
systime equ yes ; Include system time in prompt
|
||
|
||
if systime
|
||
civtim equ yes ; Yes for 12-hr civil time vs. 24-hr military
|
||
timesep equ '.' ; Separator between hours and minutes
|
||
endif
|
||
|
||
; The editor must use EREOL. The VLIB routine to send the EREOL sequence
|
||
; to the terminal needs to test for a video delay and the presence of the "/"
|
||
; quote character. Most terminals can just print the TCAP sequence as is. If
|
||
; that doesn't work, set ERLQUICK to NO. If you are using only one terminal,
|
||
; it will be most efficient to set ERLTCAP to NO and use the CLR_EOL macro.
|
||
|
||
erltcap equ yes ; Use TCAP routine vs macro
|
||
|
||
if erltcap
|
||
erlquick equ yes ; Use simplified TCAP routine
|
||
else
|
||
|
||
clr_eol macro ; Define terminal specific string
|
||
dc 1bh,'T' ; ...set high bit on last character
|
||
endm
|
||
|
||
endif ;erltcap
|
||
|
||
;-----------------------------------------------------------------------------
|
||
|
||
; Command names
|
||
|
||
; The CTABLE macro, which constructs the command dispatch table, includes a
|
||
; line for each command, the first parameter of which is the name of the
|
||
; command. These names may be changed if you wish. But make sure that you
|
||
; do not use a name that is longer than the maximum allowed length. If you
|
||
; do, the name will be truncated and a nonfatal error will occur during
|
||
; assembly. DO NOT CHANGE ANY PARAMETER OTHER THAN THE COMMAND NAME. Lower
|
||
; case letters will be converted to upper case. The macro COMMAND is defined
|
||
; in Z34MAC.LIB.
|
||
|
||
cmdsize equ 4 ; Length of each command name
|
||
|
||
cmdtbl macro
|
||
command CLED, cledon, wcled, cled
|
||
command CLS, clson, false, cls
|
||
command CP, cpon, wcp, copy
|
||
command D, diron, wdir, dir
|
||
command ECHO, echoon, false, echo
|
||
command ERA, eraon, wera, era
|
||
command H, true, whrc, clist
|
||
command LIST, liston, wlist, list
|
||
command NOTE, noteon, false, note
|
||
command P, peekon, wpeek, peek
|
||
command POKE, pokeon, wpoke, poke
|
||
command PORT, porton, wport, port
|
||
command PROT, proton, wprot, att
|
||
command Q, quieton,wquiet, quset
|
||
command R, reson, false, reset
|
||
command REG, regon, wreg, register
|
||
command REN, renon, wren, ren
|
||
command SP, spaceon,false, space
|
||
command SPOP, cledon, wspop, shpop
|
||
command TYPE, lton, wtype, type
|
||
command WHL, whlon, false, whl
|
||
endm
|
||
|
||
; END Z34RCP.LIB
|
||
|