85. Move to/from control register

85.1. Name

MOVEC -- Move to/from control register

85.2. Synopsis

        MOVEC        Rc,Rn
        MOVEC        Rn,Rc

        Size = (Long)

85.3. Function

Copy the contents of the specified control register to the specified general register or copy from the general register to the control register. This is always a 32-bit transfer even though the control register may be implemented with fewer bits.

85.4. Format

        -----------------------------------------------------------------
        |15 |14 |13 |12 |11 |10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
        |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
        | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 |dr |
        |---|-----------|-----------------------------------------------|
        |A/D| REGISTER  |                CONTROL REGISTER               |
        -----------------------------------------------------------------

        A/D indicates type of Rn register:
        0->Rn=Dn
        1->Rn=An

        "REGISTER" indicates the number of Rn register.

        dr specifies direction of move:
        0->Rc to Rn.
        1->Rn to Rc.

        "CONTROL REGISTER" specifies one of the control registers:

        Hex value         Control Register
        ~~~~~~~~~~        ~~~~~~~~~~~~~~~~
        000               SFC     68010+
        001               DFC     68010+
        002               CACR    68020+
        003               TC      68040+
        004               ITT0    68040+
        005               ITT1    68040+
        006               DTT0    68040+
        007               DTT1    68040+
        008               BUSCR   68060
        800               USP     68010+
        801               VBR     68010+
        802               CAAR    only 68020 and 68030
        803               MSP     68020+
        804               ISP     68020+
        805               MMUSR   68040+
        806               URP     68040+
        807               SRP     68040+
        808               PCR     68060

        All other hex codes generate an exception: illegal instruction.

85.5. Result

        None.

85.6. See also

MOVE USP