mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +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,6 +1170,7 @@ static String sib_to_string(u8 rm, u8 sib)
|
||||||
builder.append(scale);
|
builder.append(scale);
|
||||||
} else {
|
} else {
|
||||||
builder.append(base);
|
builder.append(base);
|
||||||
|
if (!base.is_empty() && !index.is_empty())
|
||||||
builder.append('+');
|
builder.append('+');
|
||||||
builder.append(index);
|
builder.append(index);
|
||||||
builder.append(scale);
|
builder.append(scale);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue