Skip to content

Commit

Permalink
#8 Don't use \t between opcode and operands
Browse files Browse the repository at this point in the history
  • Loading branch information
hagronnestad committed Oct 8, 2019
1 parent e745a52 commit b3eedd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MicroProcessor/Cpu6502/OpCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public override string ToString() {

public string ToString(bool showComments = false) {
var operands = $"{string.Join(" ", Operands.Select(x => $"{x:X2}"))}";
var s = $"{OpCodeAddress:X4}\t{Code:X2}\t{operands.PadRight(5, ' ')}\t{Name}";
var s = $"{OpCodeAddress:X4}\t{Code:X2} {operands.PadRight(5, ' ')}\t{Name}";

switch (AddressingMode) {
case Enums.AddressingMode.Accumulator:
Expand Down

0 comments on commit b3eedd0

Please sign in to comment.