Zydis: CPU flags

Zydis v4.1.0

Loading...
Searching...
No Matches
Macros
CPU flags
Decoder

## Macros
#define | ZYDIS_CPUFLAG_CF (1ul << 0)
| Carry flag.
#define | ZYDIS_CPUFLAG_PF (1ul << 2)
| Parity flag.
#define | ZYDIS_CPUFLAG_AF (1ul << 4)
| Adjust flag.
#define | ZYDIS_CPUFLAG_ZF (1ul << 6)
| Zero flag.
#define | ZYDIS_CPUFLAG_SF (1ul << 7)
| Sign flag.
#define | ZYDIS_CPUFLAG_TF (1ul << 8)
| Trap flag.
#define | ZYDIS_CPUFLAG_IF (1ul << 9)
| Interrupt enable flag.
#define | ZYDIS_CPUFLAG_DF (1ul << 10)
| Direction flag.
#define | ZYDIS_CPUFLAG_OF (1ul << 11)
| Overflow flag.
#define | ZYDIS_CPUFLAG_IOPL (1ul << 12)
| I/O privilege level flag.
#define | ZYDIS_CPUFLAG_NT (1ul << 14)
| Nested task flag.
#define | ZYDIS_CPUFLAG_RF (1ul << 16)
| Resume flag.
#define | ZYDIS_CPUFLAG_VM (1ul << 17)
| Virtual 8086 mode flag.
#define | ZYDIS_CPUFLAG_AC (1ul << 18)
| Alignment check.
#define | ZYDIS_CPUFLAG_VIF (1ul << 19)
| Virtual interrupt flag.
#define | ZYDIS_CPUFLAG_VIP (1ul << 20)
| Virtual interrupt pending.
#define | ZYDIS_CPUFLAG_ID (1ul << 21)
| Able to use CPUID instruction.

## Detailed Description

Constants used for testing CPU flags accessed by an instruction.

## Macro Definition Documentation

## ◆ ZYDIS_CPUFLAG_AC

#define ZYDIS_CPUFLAG_AC (1ul << 18)

Alignment check.

## ◆ ZYDIS_CPUFLAG_AF

#define ZYDIS_CPUFLAG_AF (1ul << 4)

Adjust flag.

## ◆ ZYDIS_CPUFLAG_CF

#define ZYDIS_CPUFLAG_CF (1ul << 0)

Carry flag.

## ◆ ZYDIS_CPUFLAG_DF

#define ZYDIS_CPUFLAG_DF (1ul << 10)

Direction flag.

## ◆ ZYDIS_CPUFLAG_ID

#define ZYDIS_CPUFLAG_ID (1ul << 21)

Able to use CPUID instruction.

## ◆ ZYDIS_CPUFLAG_IF

#define ZYDIS_CPUFLAG_IF (1ul << 9)

Interrupt enable flag.

## ◆ ZYDIS_CPUFLAG_IOPL

#define ZYDIS_CPUFLAG_IOPL (1ul << 12)

I/O privilege level flag.

## ◆ ZYDIS_CPUFLAG_NT

#define ZYDIS_CPUFLAG_NT (1ul << 14)

Nested task flag.

## ◆ ZYDIS_CPUFLAG_OF

#define ZYDIS_CPUFLAG_OF (1ul << 11)

Overflow flag.

## ◆ ZYDIS_CPUFLAG_PF

#define ZYDIS_CPUFLAG_PF (1ul << 2)

Parity flag.

## ◆ ZYDIS_CPUFLAG_RF

#define ZYDIS_CPUFLAG_RF (1ul << 16)

Resume flag.

## ◆ ZYDIS_CPUFLAG_SF

#define ZYDIS_CPUFLAG_SF (1ul << 7)

Sign flag.

## ◆ ZYDIS_CPUFLAG_TF

#define ZYDIS_CPUFLAG_TF (1ul << 8)

Trap flag.

## ◆ ZYDIS_CPUFLAG_VIF

#define ZYDIS_CPUFLAG_VIF (1ul << 19)

Virtual interrupt flag.

## ◆ ZYDIS_CPUFLAG_VIP

#define ZYDIS_CPUFLAG_VIP (1ul << 20)

Virtual interrupt pending.

## ◆ ZYDIS_CPUFLAG_VM

#define ZYDIS_CPUFLAG_VM (1ul << 17)

Virtual 8086 mode flag.

## ◆ ZYDIS_CPUFLAG_ZF

#define ZYDIS_CPUFLAG_ZF (1ul << 6)

Zero flag.