61. Set one byte on CoProcessor condition

61.1. Name

cpScc -- Set one byte on coprocessor condition

61.2. Synopsis

        cpScc        <ea>

        Size = (Byte)

61.3. Function

If given condition is true, byte specified by <ea> is loaded with $FF. Else it is loaded with $00.

61.4. Format

                                                           <ea>
        ----------------------------------------=========================
        |15 |14 |13 |12 |11 |10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
        |---|---|---|---|-----------|---|---|---|-----------|-----------|
        | 1 | 1 | 1 | 1 | CP-ID =! 0| 0 | 0 | 1 |    MODE   | REGISTER  |
        |---|---|---|---|-----------|---|---|---|-----------------------|
        | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | COPROCESSOR CONDITION |
        |---------------------------------------------------------------|
        |    OPTIONAL COPROCESSOR EXTENSION WORD or OPTIONAL <ea>       |
        -----------------------------------------------------------------

        CP-ID field identify coprocessor (1 to 7). If CP-ID=0,
        "line emulation F" exception is generated.

        "COPROSSESSOR CONDITION" field, specifies condition to test.
        This condition is addressed to coprocessor which, after examining
        this one, address directives to processor in order to execute
        the instruction.

REGISTER
        <ea> field specifies place of destination byte.
        Allowed addressing modes are:
        --------------------------------- -------------------------------
        |Addressing Mode|Mode| Register | |Addressing Mode|Mode|Register|
        |-------------------------------| |-----------------------------|
        |      Dn       |000 |No reg. Dn| |   (Abs).W     |111 |  000   |
        |-------------------------------| |-----------------------------|
        |      An       | -  |    -     | |   (Abs).L     |111 |  001   |
        |-------------------------------| |-----------------------------|
        |     (An)      |010 |No reg. An| |   (d16,PC)    | -  |   -    |
        |-------------------------------| |-----------------------------|
        |     (An)+     |011 |No reg. An| |   (d8,PC,Xi)  | -  |   -    |
        |-------------------------------| |-----------------------------|
        |    -(An)      |100 |No reg. An| |   (bd,PC,Xi)  | -  |   -    |
        |-------------------------------| |-----------------------------|
        |    (d16,An)   |101 |No reg. An| |([bd,PC,Xi],od)| -  |   -    |
        |-------------------------------| |-----------------------------|
        |   (d8,An,Xi)  |110 |No reg. An| |([bd,PC],Xi,od)| -  |   -    |
        |-------------------------------| |-----------------------------|
        |   (bd,An,Xi)  |110 |No reg. An| |    #data      | -  |   -    |
        |-------------------------------| -------------------------------
        |([bd,An,Xi],od)|110 |No reg. An|
        |-------------------------------|
        |([bd,An],Xi,od)|110 |No reg. An|
        ---------------------------------

61.5. Result

        Not affected.

61.6. See also

cpBcc