From 076bea641d53b8c81a4054532864c0232e8ed44a Mon Sep 17 00:00:00 2001 From: profan Date: Fri, 5 Jun 2026 20:40:40 +0100 Subject: [PATCH] make visualization of operands nicer, so you can distinguish constants and addresses more easily --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 0e88cf2..023c829 100644 --- a/Program.cs +++ b/Program.cs @@ -234,7 +234,7 @@ internal readonly record struct Operand } public static implicit operator int(Operand o) => o.Value; - public override string ToString() => $"{Value} (constant: {IsConstant.ToString().ToLower()})"; + public override string ToString() => $"{(IsConstant ? Value : $"_{Value}")}"; } internal readonly record struct Instruction(