X86: Take address size into account when computing an effective address.
This commit is contained in:
parent
1d18eb9043
commit
8a1eb7e8be
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue