|
| ||||
|
|
|
|
|
|
This is the R.O.M.E.68000 Manual version 0.51.
This is an experimental version.
Copyright © 1997 by G. Mezzetti; last update: January 1, 1999.
Ordinary Instructions of the ``Control'' Class
SKcc
| Oper. | Addressing Group | Op. Use | Mult. Op. |
|---|---|---|---|
| A | sadr | d | - |
| B | dadr | d | - |
if B cc A then
IP + 1 --> IP {skip next instruction}
end if.
This is not a single instruction, but rather a family of instructions all sharing the same framework: an arithmetic relation between the operands is tested, and if it is true then the next instruction is skipped.
SKcc is not an actual mnemonic code: you cannot type it in the source code as it is, but you must substitute the two letters cc with other two letters which indicate the condition you want to test.
Each actual mnemonic code is associated with exactly one instruction key, so that different conditions correspond to different instruction keys.
The actual mnemonic codes for all members of the SKcc family are listed in the table below, together with their corresponding instruction keys; of course, the table also tells you which is the arithmetic relation that each single (actual) instruction tests.
SKcc family| Actual Mnemonic |
Instr. Key |
``B cc A'' means: | ``condition code'' reads as: |
|---|---|---|---|
SKLT |
40 |
B < A (signed comparison) | Less Than |
SKLE |
42 |
B ≤ A (signed comparison) | Less or Equal |
SKGE |
44 |
B ≥ A (signed comparison) | Greater or Equal |
SKGT |
46 |
B > A (signed comparison) | Greater Than |
SKLO |
48 |
B < A (unsigned comparison) | LOwer |
SKLS |
4A |
B ≤ A (unsigned comparison) | Lower or Same |
SKHS |
4C |
B ≥ A (unsigned comparison) | Higher or Same |
SKHI |
4E |
B > A (unsigned comparison) | HIgher |
SKNE |
50 |
B ≠ A | Not Equal |
SKEQ |
52 |
B = A | EQual |
For instance, the official name of the SKLT instruction is ``SKip if Less Than''; the official name of the SKLE instruction is ``SKip if Less or Equal''; and so on.
|
|
|
|
|
|