asm/reference

This content has not been validated; it was AI-generated following the x86-64 ISA Documentation generation process to maintain high quality. However, as no human has verified this data, errors may exist. If the accuracy of this data is critical, please consult the Intel SDM. The model used to generate this is gemma4:31b

KORTESTB



Performs a logical AND operation between a source operand and a destination operand of size 1 byte, updating the ZF, SF, and PF flags based on the result. The destination operand is not modified.

The following table covers the supported source and destination operands:

source destination(s)
reg r8
imm r8
reg m1
imm m1

DO NOT support LOCK

This instruction is available in 64-bit mode and compatibility mode.

The instruction does not modify the destination operand; it only affects the CPU flags. This allows for testing a bitmask against a value without altering the original data. Ensure that the operand size is strictly 1 byte to avoid unintended memory access or incorrect flag updates.