NEWDOS/80 Version 2 Quick Reference

This is a copy of the NEWDOS/80 Version 2 REFERENCE CARD. This card is a short reference guide for the manual provided by Apparat with NEWDOS/80 Version 2 released in August 1981.


DOS COMMANDS

General statements for DOS commands:


APPEND,file1,TO,file2

Append the contents of file1 to the end of file2.

    APPEND,NEW/DAT:0,TO,OLD/DAT:1
    APPEND NEW/DAT:0 OLD/DAT:1


ATTRIB,file1,options

Change the specified attributes (at least one required) of file1. The following defines the valid values for options:

    ATTRIB CNTRLDAT/CMD,UPD=KKKJJJ,PROT=READ


AUTO,doscmd

The DOS command doscmd is stored in the system diskette's directory for automatic execution at subsequent re-boots. AUTO alone eliminates this automatic re-boot action.

    AUTO,BASIC,RUN"MYPROG/BAS:0"


BASIC2

(Model I only) Enter Level II non-disk BASIC (no DOS, no disk BASIC).

    BASIC2


BLINK,yn

Enable/disable cursor blinking.

    BLINK,N


BOOT

RE-boot the DOS system.

    BOOT


BREAK,yn

Enable/disable the BREAK key.

    BREAK,N


CHAIN,file1,sectionid

Enter keyboard input chaining mode, starting at the beginning of file1 if sectionid is not specified or the beginning of the section sectionid of file1 if section was specified. JCL is assumed as the name extension if none was specified in file1.

    CHAIN MYCMDS/DAT:1


CHNON,option

Alter chaining state. Options are:

    CHNON,Y


CLEAR,START=addr1,END=addr2,MEM=addr3

Clear all routes, dequeue all timer and * name routines, set HIMEM to addr3 or to highest memory address, zero user memory from 5200H or addr1 to HIMEM or addr2.

    CLEAR,START=7000H,MEM=BFFFH
    CLEAR


CLOCK,yn

Turn on/off the time display on the screen.

    CLOCK,N


CLS

Clear the display.

    CLS


COPY,file1,TO,file2,options

Single file copy. Only options SPDN and DPDN allowed.

    COPY,XXX/DAT:0,TO,YYY/DAT:1


COPY,$file1,TO,file2,options

Single file copy with system diskette conflict. Only options SPDN and DPDN allowed. $ indicates if at least one of file1 or file2 specifies drive 0, that diskette is not the current system diskette. If both files use drive 0, they are on the same diskette.

    COPY,$XXX/DAT:0,TO,YYY/DAT:1


COPY,dn1,file1,TO,file2,options

Single drive, two diskette single file copy. Only options SPDN and DPDN allowed.

    COPY,1,XXX/DAT,YYY/DAT


COPY,dn1,TO,dn2,date,options

Sector by sector full diskette copy. Both diskettes must have the same granules per lump, otherwise the CBF (Copy By File) type of COPY must be used. Options are:

    COPY,0,1,10/06/81,FMT,NDMW
    COPY,0,0,SN=OLDDISK,ODN=NEWDISK


COPY,dn1,dn2,date,CBF,options

Multiple file copy. Distinguished from full diskette copy by the CBF (Copy By File) parameter. One, some or all of the files, excluding BOOT/SYS and DIR/SYS, of the source diskette are copied to the destination diskette. All excluded files and all non-allocated granules are not copied. If a NEWDOS/80 system disk is being created, FMT must be specified. All of the above options except BDU, are useable by this copy. If a system file is to be copied and it is not already in the destination diskette, FMT should be specified. Additional options are:

    COPY,0,1,01/24/82,CBF,NFMT,CFWO,USR


CREATE,file1,LRL=sz1,REC=count1,ASE=yn,ASC=yn

Create new file file1 or use old file file1 as the new file. The file record size is set to sz1, space for count1 records is allocated, the record filled with zeroes and EOF set to the end of those records. Automatic space allocation and deallocation set according to the ASE and ASC options respectively. Defaults for LRL, REC, ASE and ASC are 256, 0, Y and Y respectively.

    CREATE,XXX/DAT:1,REC=100


DATE

Display the current date.

    DATE

DATE,date1

Set date1 as the computer's current date.

        DATE 02/19/82


DEBUG,yn

Enable/disable debug entry at user program start.

    DEBUG,Y


DIR,dn1,options

Display the user files accounted for in the directory of the diskette mounted on drive dn1. Options are:

    DIR,0,A,/DAT,U


DO,file1,section

Performs identical to CHAIN.

    DO SOMEFILE,TEST


DUMP,file1,startaddr,endaddr,entryaddr,retaddr

Dump the contents of memory locations startaddr thru endaddr to disk file file1. If entryaddr =0FFFFH, the file is readable via SUPERZAP, DBDM mode, otherwise the file is stored as a load module with load addresses offset by the value reladdr-startaddr. Defaults for entryaddr and reladdr are 402DH and startaddr respectively.

    DUMP,PROGFILE/CMD:0,5200H,63F3H,5530H


ERROR,xx

Display error message for DOS error xx.

    ERROR,24


FORMAT,dn1,dname,date,dpwd,options

Format the diskette on drive dn1 and set up the directory, boot and control information using name dname, date and password dpwd. Defaults for dname, date and dpwd are NOTNAMED, the current date and PASSWORD respectively.

Options Y, N, NDMW, DDND, ODN, KDN, KDD, BDU, DDSL, DDGA and DPDN are defined under COPY. Additional options are:

    FORMAT,0,AAA0,08/01/81,PSWD,Y
    FORMAT,1,,,,Y


FORMS,WIDTH=xxx,LINES=yyy

Model III only. Set the printer characters per line = xxx and lines per page = yyy. If a parameter is missing its value is not changed.

    FORMS,WIDTH=80,LINES=60


FREE

Display the number of free granules and free directory entries for each diskette mounted.


HIMEM

Display HIMEM value.


HIMEM,addr1

Set addr1 as HIMEM value. DOS maintains a highest memory value HIMEM to be used as an memory upper limit by user programs so that programs loaded above that value will be protected.

    HIMEM,65000


JKL

Copy the contents of the screen to the printer.


KILL,file1

Delete file1 from the diskette mounted either on the drive specified or if none specified the lowest numbered drive containing that file.

    KILL,XXX/DAT:1


LC,yn

If yn=Y the keyboard will accept lower case a..z. If yn=N the keyboard will convert lower case a..z to upper case.

    LC,Y


LCDVR,yn1,yn2

If yn1=Y the keyboard driver is enabled and the lower case function LC is set according to yn2. If yn1=N the keyboard driver is disabled and the LC function is inoperative.

    LCDVR,Y,Y


LIB

Display DOS library commands.


LIST,file1,startline,linecount

List text file file1 on the display, starting at line startline and displaying linecount number of lines. The defaults for startline and linecount are 1 and 65535 respectively.

    LIST,TEXTFILE/PT1:0


LOAD,file1

Load the machine language program file file1 into main memory but do not execute it.

    LOAD,OVERLAY/OBJ:0


MDBORT

Terminate MINI-DOS and go to DOS READY.


MDCOPY,file1,TO,file2

This single file COPY is legal under MINI-DOS, no filespec truncation options or diskettes swaps allowed.

    MDCOPY,XXX:1,TO,YYY/DAT:0


MDRET

Exit MINI-DOS and return to the main program continuing its execution where left off when DFG was pressed.


PAUSE,msg

Display message msg and wait on the operator to press ENTER.

    PAUSE,MOUNT INVENTORY DISKETTE ON DRIVE 1


PDRIVE,pwdn1

Display PDRIVE table.


PDRIVE,pwdn1,dn2,options

Update drive dn2's data and display drive dn1 diskette's PDRIVE table. Options are:

    PDRIVE,0
    PDRIVE,0,2,TI=A,TD=E,TC=40,SPT=18,TSR=3,GPL=6,DDSL=17,DDGA=2
    PDRIVE,0,1,TI=BH,TD=B,TC=77,SPT=12,A


PRINT,file1,startline,linecount

Format and execution the same as LIST except output to printer.


PROT,pwdn1,options

Alter diskette control information. Options (one required) are:

    PROT,1,NAME=NEWNAME


PURGE,pwdn1,options

For each qualifying file the operator is asked whether or not the file is to be killed. If so, it is killed immediately. BOOT/SYS and DIR/SYS are excluded. Options are:

    PURGE,1,USR


R

Repeat the previous DOS command.


RENAME,file1,TO,file2

Change the name and name extension of file1 to that of file2. file2 must not contain a password or drive number.

    RENAME,OLDNAME/DAT:1,TO,NEWNAME/PTA


ROUTE

Display existing routes.


ROUTE,CLEAR

Clear all routes.


ROUTE,xxx

Clear routes for device xxx.


ROUTE,xxx,yyy(s)

Clear routes for device xxx and set routing for device xxx to the one or more devices/routines specified. Device codes are KB (keyboard), DO (display), PR (printer), RI (RS-232 in, Model III only), RO (RS-232 out, Model III only) and NL (nothing transfered). A yyy routine is expressed in the form MM=addr1 (see manual). Input devices may not be routed to output devices.

    ROUTE,PR
    ROUTE,DO,DO,PR


SETCOM,options

Model III only. Set RS-232 interface parameters. Only the parameters specified are changed. Options are:

    SETCOM,WORD=8,BAUD=300,PARITY=1,WAIT
    SETCOM,OFF


STMT,msg

Display the message msg.

    STMT,PHASE ONE COMPLETED


SYSTEM,pwdn1,options

Change and/or display the system options in the control sector of the system diskette mounted on drive dn1. These options determine the system configuration at subsequent re-boots when this diskette is the system diskette. Options are:

    SYSTEM,0,AL=4,AA=Y,AU=Y,AV=20,AT=Y
    SYSTEM,0


TIME

Display the current time.


TIME,time1

Set time1 as the current time.

    TIME,09:30:00


VERIFY,yn

Force verify read after every sector write.

    VERIFY,N


WRDIRP,dn1

Write directory sectors protected. On the Model III rewrite the directory sectors for the diskette mounted on drive dn1 to have address mark F8. On the Model I rewrite the directory sectors to have address mark FA (if SYSTEM option BN=N) to make the diskette useable on all Model I systems (including NEWDOS/80 Versions 1 or 2) or F8 (if SYSTEM option BN=Y) to make the diskette useable interchangeably on Model I and III under NEWDOS/80 Version 2. The actual directory data is not changed in any way.

    WRDIRP,1