mib: Handle MIB EA in a different way from regular EA's
commit4360ba28f0e4767ffe28ef3a037aaa103b5660b6
authorJin Kyu Song <jin.kyu.song@intel.com>
Wed, 11 Dec 2013 00:24:45 +0000 (10 16:24 -0800)
committerJin Kyu Song <jin.kyu.song@intel.com>
Thu, 12 Dec 2013 00:56:19 +0000 (11 16:56 -0800)
treed66cad3a8c786b4291c28879d038caaffd53a897
parent478f2dafff5b58c7c965cfe2277ff71e1492815a
mib: Handle MIB EA in a different way from regular EA's

In mib operands, users' intention should be preserved.
e.g.) [eax + eax*1] and [eax*2] must be distinguished and encoded differently.

So  a new EA flag EAF_MIB for mib operands is added.
And a new EA hint EAH_SUMMED for the case of [eax+eax*4] being parsed
as [eax*5] is also added.

NOSPLIT specifier does not have an effect in mib, so [nosplit eax + eax*1]
will be encoded as [eax, eax] rather than [eax*2] as in a regular EA.

Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
assemble.c
eval.c
nasm.h