m68k 彙編的 IF-THEN-ELSE

; IF d0 == 10 GO TO ten, ELSE GO TO other
    CMP    #10,d0        ; compare register contents to immediate value 10
                         ; instruction affects the zero flag
    BEQ    ten           ; branch if zero flag set
other:
    ; do whatever needs to be done for d0 != 10
    BRA    afterother    ; unconditionally jump across IF case 
ten:
    ; do whatever needs to be done for d0 == 10
afterother:
    ; continue normal common program flow

哪些指令影響哪些標誌,哪些條件分支(也可能基於特定的標誌組合 )可用,很大程度上取決於你選擇的 CPU,應在手冊中查詢。