fmt: correctly format segment offsets (#12364)
parent
9aba00cd08
commit
1d1793ec34
|
@ -57,6 +57,10 @@ fn (mut f Fmt) asm_arg(arg ast.AsmArg) {
|
||||||
f.write(arg)
|
f.write(arg)
|
||||||
}
|
}
|
||||||
ast.AsmAddressing {
|
ast.AsmAddressing {
|
||||||
|
if arg.segment != '' {
|
||||||
|
f.write(arg.segment)
|
||||||
|
f.write(':')
|
||||||
|
}
|
||||||
f.write('[')
|
f.write('[')
|
||||||
base := arg.base
|
base := arg.base
|
||||||
index := arg.index
|
index := arg.index
|
||||||
|
|
Loading…
Reference in New Issue