Skip to content

Ghidra is a software reverse engineering (SRE) framework

x86: Add the "SETALC" instruction to SLEIGH specs

Raphaël Akladios304e3a56a346
diff --git a/Ghidra/Processors/x86/data/languages/ia.sinc b/Ghidra/Processors/x86/data/languages/ia.sinc
index 096a4e3033..dfcb179c47 100644
--- a/Ghidra/Processors/x86/data/languages/ia.sinc
+++ b/Ghidra/Processors/x86/data/languages/ia.sinc
@@ -3491,6 +3491,9 @@ define pcodeop smm_restore_state;
:SET^cc rm8 is vexMode=0 & byte=0xf; row=9 & cc; rm8 { rm8 = cc; }
+# Undocumented instruction (officially "invalid")
+:SETALC is vexMode=0 & byte=0xd6 { AL = CF * 0xff; }
+
# manual is not consistent on operands
:SGDT m16 is vexMode=0 & opsize=0 & byte=0xf; byte=0x1; ( mod != 0b11 & reg_opcode=0 ) ... & m16
{