SETNZ
/ SETNESet byte if not equal / nonzero
Test ZF = 0; write one when true, otherwise zero.
| Form | Bits | Requires | Encoding |
|---|---|---|---|
SETNZ r8 | 8 | x86-64 | 0F 95 /r |
Operation#
Pseudo-C · selected form
dst_byte = (ZF = 0) ? 1 : 0Exact upstream semantics
Standard variant
let result := if Condition_Holds(cond) then 1[7:0] else 0[7:0];What to watch for
- REX prefixes exclude AH/BH/CH/DH destinations.
Architectural details#
- Flags
- Reads ZF = 0; leaves RFLAGS unchanged.
- Destination
- Writes one byte; all other bits of the destination register are preserved.
- Encoding
0F 95 /r- Operands
r8write · 8 bits
- Coverage
- Selected register destinations only; memory and 16-bit conditional-move forms are outside this selection.
- Conditions
not equal / nonzero: ZF = 0
Exception information & execution requirements
#UD
Imported exceptions are checks exposed by this XML form; memory, stack, instruction-fetch and called architectural helpers can introduce additional faults.
Feature availability alone does not guarantee execution: OS state and execution-level controls also apply. Use the linked architecture documentation for the full exception conditions.
Sources & provenance#
Technical fields are imported from pinned upstream files. Explanations and explorer behavior are maintained separately.
Intel · SETcc-Set-Byte-on-Condition.xml
- Revision
4ebe7f0ac1bd00f46244c49bb72c503ce368def7- SHA-256
e70cd9cfa44dd8dbf545c67a6a7f089d2f191efdc7bde6313738cb8f23a2828d- Terms
- Intel SDM terms; see License.md