summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dynasm/dasm_x86.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/dynasm/dasm_x86.lua b/dynasm/dasm_x86.lua
index 41144e12..aa1a5c32 100644
--- a/dynasm/dasm_x86.lua
+++ b/dynasm/dasm_x86.lua
@@ -786,7 +786,9 @@ local function parseoperand(param)
786 if t.opsize == "f" then 786 if t.opsize == "f" then
787 t.mode = t.reg == 0 and "fF" or "f" 787 t.mode = t.reg == 0 and "fF" or "f"
788 else 788 else
789 if reg == "@w4" then wwarn("bad idea, try again with `esp'") end 789 if reg == "@w4" or (x64 and reg == "@d4") then
790 wwarn("bad idea, try again with `"..(x64 and "rsp'" or "esp'"))
791 end
790 t.mode = t.reg == 0 and "rmR" or (reg == "@b1" and "rmC" or "rm") 792 t.mode = t.reg == 0 and "rmR" or (reg == "@b1" and "rmC" or "rm")
791 end 793 end
792 break 794 break