mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Remove empty space after instructions with no operands
This commit is contained in:
@@ -22,7 +22,9 @@ public record Instruction(string Mnemonic, IEnumerable<Operand> Operands) : IBod
|
||||
public OpCode OpCode => LexerMaps.MnemonicToOpCode(Mnemonic);
|
||||
public OperationType? OperationType => LexerMaps.TryOperationMnemonicToType(Mnemonic);
|
||||
|
||||
public override string ToString() => $"{Mnemonic} {string.Join(", ", Operands)}";
|
||||
public override string ToString() => Operands.Any()
|
||||
? $"{Mnemonic} {string.Join(", ", Operands)}"
|
||||
: Mnemonic;
|
||||
}
|
||||
|
||||
public record Label(string Name) : IBodyItem
|
||||
|
||||
Reference in New Issue
Block a user