User guide

194 CHAPTER 11. THE MC PACKAGE
ALIGND K
Align the next item of data to an address which is a multiple of k which must be
2, 4 or 8.
AND RA RV RG RM RL RD RDX RDXs RDXsB
RR AR VR GR MR LR DR DXR DXsR DXsBR
RK AK VK GK MK LK DK DXK DXsK DXsBK
Perform the bit wise AND of the second operand into the first.
CALL KK
Call the function who number is the first argument with n arguments that have
already been pushed onto the stack when n is the sec ond operand. On return these
arguments will have been popped and, by convention, the result will be in r egi s te r A.
CDQ F
Sign extend register A into D. That is, if A is positive set D to zero, otherwise it is
to #xFFFFFFFF. Th i s is normally used in conjuct i on with DIV.
CMP RA RV RG RM RL RD RDX RDXs RDXsB
RR AR VR GR MR LR DR DXR DXsR DXsBR
RK AK VK GK MK LK DK DXK DXsK DXsBK
Set the condition code to difference between the first operand and the sec ond. The
condition code is used by conditional jumps and c ondi t i onal setting instructions. For
example,
mcRK(mc_cmp, mc_b, 100)
mcJL(mc_jle, 25)
will compile code to jump the label L25 is B<=100, using signed arithmetic.
DATAB K
Assemble one byte of data with the specified value.
DATAK K
Assemble one aligned word of data with the specified value.
DATAL L
Assemble one aligned word of data init i al i se d with the absolute address of code or
data specified by the given label.
DEBUG K
Set the debug tracing level ( mcDebug) to the specified value. The least significant
four bits of mcDebug control the level of tracing as follows.
#b0001 Output any mcComment comments.
#b0010 Output the MC instructions.
#b0100 Output the target machine instructions.
#b1000 Output the compiled binary code.