User guide
11.3. THE MC LANGUAGE 195
DEC R A V G M L D DX DXs DXsB
Decrement the specified register or memory word by 1, leaving the condition code
undefined.
DIV K R A V G M L D DX DXs DXsB
Divide the double length value in D:A by the specified operand. The resul t is left
in A and the remainder in D. The DIV instruction performs signed arithmetic.
DLAB L
Set the specified l abel to the absolute address of the next avai l able byte in the data
area.
ENDFN F
This marks the end of the body of the current fu nct i on.
END F
This directive specifies that no more code generation will be done. The system
will free all temporary work space only preseving the MC control block, the function
dispatch table, and the data and code areas.
ENTRY KKK
This specifies the entry point of the func ti on whose number is given by the first
operand. The second operand specifies how many arguments the function takes and the
third specified how many local variables the function may use. Calls to this function
must have the require d number of arguments pushed onto the stack, and on return
this number of values will be aut omat i cal l y popped from the stack. Functions called
directly from BCPL using mcCall always take three arguments, but functions called
using the CALL instruction can take any number of arguments.
INC R A V G M L D DX DXs DXsB
Increment the specified register or word of memory by one, leaving the condition
code undefined.
JEQ JS JL JR
Jump to the speci fie d location if the first operand of a previous CMP instruction was
equal to its second operand.
JGE JS JL JR
Jump to the speci fie d location if the first operand of a previous CMP instruction was
greater than or equal to its second operand using signed arithmetic.
JGT JS JL JR
Jump to the speci fie d location if the first operand of a previous CMP instruction was
greater than its second operand using signed arithemetic.
JLE JS JL JR
Jump to the speci fie d location if the first operand of a previous CMP instruction was
less than or equal to its second operand using signed arithmetic.