Skip to content

Commit

Permalink
opcode => mnemonic
Browse files Browse the repository at this point in the history
It's more correct. NFC.
  • Loading branch information
ibara authored Apr 13, 2021
1 parent 6e266ea commit 92a3286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/a80.d
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static void parse(string line) {
dbFix = 1;
}

/* Split opcode from label. */
/* Split op from label. */
auto splitop = splita1[0].findSplit(":");
if (!splitop[1].empty) {
op = strip(splitop[2]);
Expand Down Expand Up @@ -198,7 +198,7 @@ static void process()
}

/**
* List of all valid opcodes.
* List of all valid mnemonics.
*/
if (op == "nop")
nop();
Expand Down Expand Up @@ -373,7 +373,7 @@ static void process()
else if (op == "end")
end();
else
err("unknown opcode: " ~ op);
err("unknown mnemonic: " ~ op);
}

/**
Expand Down Expand Up @@ -1420,7 +1420,7 @@ static int regMod8(string reg)
static void argcheck(bool passed)
{
if (passed == false)
err("arguments not correct for opcode: " ~ op);
err("arguments not correct for mnemonic: " ~ op);
}

/**
Expand Down

0 comments on commit 92a3286

Please sign in to comment.