mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +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
Notes:
sideshowbarker
2024-07-19 07:41:53 +09:00
Author: https://github.com/awesomekling
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