make visualization of operands nicer, so you can distinguish constants and addresses more easily
This commit is contained in:
parent
abfc5433c5
commit
076bea641d
|
|
@ -234,7 +234,7 @@ internal readonly record struct Operand
|
||||||
}
|
}
|
||||||
|
|
||||||
public static implicit operator int(Operand o) => o.Value;
|
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(
|
internal readonly record struct Instruction(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue