$Header: /home/radek/cvs/forth-book/db-mc68k-inst/Bcc,v 1.5 2003/12/28 18:21:56 radek Exp $

Jméno

Bcc — Branch Conditionally

Program Control Operation

Přehled

Bcc label
BCC label
BCS label
BEQ label
BGE label
BGT label
BHI label
BLE label
BLS label
BLT label
BMI label
BNE label
BPL label
BVC label
BVS label

Popis

Podle podmínky instrukce pokračuje další instrukcí, nebo vykoná skok / převede řízení programu na adresu danou aktuální adresou a uvedeným posunutím.

If Condition True
        PC + dn → PC

Tabulka 29. Podmínkové kódy *:[2:3:1:7]

MnemonicPodmínkaKódTest
T* / BRATrue00001
F* / BSRFalse00010
HIHigh0010(not C) and (not Z)
LSLow or Same0011C or Z
CC(HI)Carry Clear0100C
CS(LO)Carry Set0101C
NENot Equal0110Z
EQEqual0111Z
VCOverflow Clear1000V
VSOverflow Set1001V
PLPlus1010N
MIMinus1011N
GEGrerat or Equal1100(N and V) or ((not N) and (not V))
LTLess Than1101(N and (not V)) or ((not N) and V)
GTGreater Than1110(N and V and (not Z)) or ((not N) and (not V) and (not Z))
LELess or Equal1111Z or N and (not V) or (not N) and V

Formát instrukce

 15  14  13  12  11  10   9   8   7   6   5   4   3   2   1   0
+---+---+---+---+---------------+-------------------------------+
| 0 | 1 | 1 | 0 |   condition   |      8-bit displacement       |
+---+---+---+---+---------------+-------------------------------+
|        16-bit displacement if 8-bit displacement = $00        |
+---------------------------------------------------------------+
|        32-bit displacement if 8-bit displacement = $00        |
+---------------------------------------------------------------+

Příklad

*FIXME:ukázka použití

Příbuzné instrukce

JMP, BRA, JSR, BSR, RTS