Warn about use of esp with DynASM x64.

master
Mike Pall 2009-12-16 04:34:54 +01:00
parent 4cb357d30f
commit d2156c7f73
1 changed files with 3 additions and 1 deletions

View File

@ -786,7 +786,9 @@ local function parseoperand(param)
if t.opsize == "f" then
t.mode = t.reg == 0 and "fF" or "f"
else
if reg == "@w4" then wwarn("bad idea, try again with `esp'") end
if reg == "@w4" or (x64 and reg == "@d4") then
wwarn("bad idea, try again with `"..(x64 and "rsp'" or "esp'"))
end
t.mode = t.reg == 0 and "rmR" or (reg == "@b1" and "rmC" or "rm")
end
break