From 1d1793ec342aa4804f9c06aa0f3b73d653c61275 Mon Sep 17 00:00:00 2001 From: crthpl <56052645+crthpl@users.noreply.github.com> Date: Mon, 1 Nov 2021 23:04:41 -0700 Subject: [PATCH] fmt: correctly format segment offsets (#12364) --- vlib/v/fmt/asm.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vlib/v/fmt/asm.v b/vlib/v/fmt/asm.v index 9de83dd6b7..0060ff4663 100644 --- a/vlib/v/fmt/asm.v +++ b/vlib/v/fmt/asm.v @@ -57,6 +57,10 @@ fn (mut f Fmt) asm_arg(arg ast.AsmArg) { f.write(arg) } ast.AsmAddressing { + if arg.segment != '' { + f.write(arg.segment) + f.write(':') + } f.write('[') base := arg.base index := arg.index