# M68K Condition codes

[M68K Documentation](https://asm-editor.specy.app/documentation/m68k.md)

Web page: https://asm-editor.specy.app/documentation/m68k/condition-codes

Status flags and the conditions tested by branches, conditional sets, loops and traps.

19 entries, each with its own page of markdown:

- [What condition codes are](https://asm-editor.specy.app/documentation/m68k/condition-codes/what-condition-codes-are.md): Condition codes record properties of an instruction’s result in the status register.
- [The status register](https://asm-editor.specy.app/documentation/m68k/condition-codes/status-register.md): The low byte of the 16-bit status register, sr, is the condition code register, ccr.
- [Condition codes flags](https://asm-editor.specy.app/documentation/m68k/condition-codes/condition-codes-flags.md): The five condition-code flags are: X, extend, carries a carry or borrow between parts of a multi-precision operation.
- [`hi`](https://asm-editor.specy.app/documentation/m68k/condition-codes/hi.md) `!c && !z`: Unsigned higher.
- [`ls`](https://asm-editor.specy.app/documentation/m68k/condition-codes/ls.md) `c || z`: Unsigned lower or same.
- [`cc`](https://asm-editor.specy.app/documentation/m68k/condition-codes/cc.md) `!c`: Carry clear.
- [`cs`](https://asm-editor.specy.app/documentation/m68k/condition-codes/cs.md) `c`: Carry set.
- [`ne`](https://asm-editor.specy.app/documentation/m68k/condition-codes/ne.md) `!z`: Not equal.
- [`eq`](https://asm-editor.specy.app/documentation/m68k/condition-codes/eq.md) `z`: Equal.
- [`vc`](https://asm-editor.specy.app/documentation/m68k/condition-codes/vc.md) `!v`: Overflow clear.
- [`vs`](https://asm-editor.specy.app/documentation/m68k/condition-codes/vs.md) `v`: Overflow set.
- [`pl`](https://asm-editor.specy.app/documentation/m68k/condition-codes/pl.md) `!n`: Plus.
- [`mi`](https://asm-editor.specy.app/documentation/m68k/condition-codes/mi.md) `n`: Minus.
- [`ge`](https://asm-editor.specy.app/documentation/m68k/condition-codes/ge.md) `(n && v) || (!n && !v)`: Greater or equal.
- [`lt`](https://asm-editor.specy.app/documentation/m68k/condition-codes/lt.md) `(n && !v) || (!n && v)`: Less than.
- [`gt`](https://asm-editor.specy.app/documentation/m68k/condition-codes/gt.md) `(n && v && !z) || (!n && !v && !z)`: Greater than.
- [`le`](https://asm-editor.specy.app/documentation/m68k/condition-codes/le.md) `z || (n && !v) || (!n && v)`: Less than or equal.
- [`hs`](https://asm-editor.specy.app/documentation/m68k/condition-codes/hs.md) `!c`: Unsigned higher or same.
- [`lo`](https://asm-editor.specy.app/documentation/m68k/condition-codes/lo.md) `c`: Unsigned lower.
