make visualization of operands nicer, so you can distinguish constants and addresses more easily

This commit is contained in:
profan 2026-06-05 20:40:40 +01:00
parent abfc5433c5
commit 076bea641d
1 changed files with 1 additions and 1 deletions

View File

@ -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(