mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibX86: Fix duplicate '+' in SIB byte disassembly
For SIB bytes with base but no index, we were emitting two '+' chars which looked very off.
This commit is contained in:
parent
8ef9c272b6
commit
8daddcfa0a
1 changed files with 2 additions and 1 deletions
|
@ -1170,7 +1170,8 @@ static String sib_to_string(u8 rm, u8 sib)
|
|||
builder.append(scale);
|
||||
} else {
|
||||
builder.append(base);
|
||||
builder.append('+');
|
||||
if (!base.is_empty() && !index.is_empty())
|
||||
builder.append('+');
|
||||
builder.append(index);
|
||||
builder.append(scale);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue