X86: Take address size into account when computing an effective address.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user