X86: Take address size into account when computing an effective address.

This commit is contained in:
Gabe Black 2009-02-27 09:25:16 -08:00
parent 1d18eb9043
commit 8a1eb7e8be

View file

@ -402,7 +402,9 @@ let {{
decoder_output = ""
exec_output = ""
calculateEA = "EA = SegBase + scale * Index + Base + disp;"
calculateEA = '''
EA = bits(SegBase + scale * Index + Base + disp, addressSize * 8 - 1, 0);
'''
def defineMicroLoadOp(mnemonic, code, mem_flags="0"):
global header_output