24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CMAND. [CALLI 211]<br />

22.14 CHAND. [CALLI 211]<br />

FUNCTION<br />

Defines commands that run specified programs, and manipulates the<br />

job's user-defined command list. In the argument list to this call,<br />

your program defines a command name that, when typed as a monitor<br />

command, will run the program specified by the file specification that<br />

is also inc,luded in the command list. The CMAND. UUO allows you to<br />

define multiple command names in the argument list, and allows you to<br />

read the command list that is already defined for your job.<br />

CALLING SEQUENCE<br />

addr:<br />

MOVE ac, [XWD fcn-code,addr]<br />

CMAND. ac,<br />

error return<br />

skip return<br />

argument-list<br />

In the calling sequence, you can supply the following information:<br />

o<br />

fcn-code is the function code.<br />

in the following sections.<br />

The function codes are listed<br />

o addr is the address of the argument list. The argument list<br />

for each function code is described in the following list of<br />

function codes.<br />

22.14.1 FUNCTION 0 (.CMINT)<br />

Initializes (clears) any current command definitions and creates a new<br />

command list as specified at addr. The argument list stored at addr,<br />

you supply the command flags;- the command name, and the file<br />

specification of the program to run when the command is invoked.<br />

The argument list for this function is formatted as follows:<br />

Word<br />

Symbol<br />

Contents<br />

0 .CMFLA<br />

1 .CMNAM<br />

2 .CMDVC<br />

3 .CMFLE<br />

4 .CMEXT<br />

5 .CMPPN<br />

6 .CMSFD<br />

7-<strong>10</strong><br />

In the left half, one or more of the flags<br />

described below. In the right half (CM.COU),<br />

store the length of this definition.<br />

Command name<br />

Device name<br />

File name<br />

File extension<br />

Project-programmer number<br />

First SFD name<br />

Remaining SFD names<br />

In argument list, you can supply the following flags to indicate the<br />

number of characters in the command that must be input to define the<br />

command uniquely. The flags are:<br />

Mask<br />

Symbol<br />

Meaning<br />

<strong>10</strong>B17<br />

CM.UN1<br />

Command is uniquely identified by the<br />

character of its name.<br />

first<br />

4B17<br />

CM.UN2<br />

Command is uniquely identified by<br />

characters.<br />

the first two<br />

22-29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!