diff options
Diffstat (limited to 'asmmon.c')
-rw-r--r-- | asmmon.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -64,15 +64,15 @@ void usage() { puts("\thelp, h\t\t\tDisplays this mesage."); } -void instinfo(const char *inst) { +void instinfo(const char *instr) { for(int i = 0; i < OPNUM; i++) { - if (inst[0] == mne[i][0]) { - if (!strcasecmp(inst, mne[i])) { + if (instr[0] == mne[i][0]) { + if (!strcasecmp(instr, mne[i])) { printf("%s\t%s\n", mne[i], instdesc[i]); break; } - } else if (inst[0] == 'a') { - if (!strcasecmp(inst, "all")) { + } else if (instr[0] == 'a') { + if (!strcasecmp(instr, "all")) { printf("%s\t%s\n", mne[i], instdesc[i]); } } @@ -174,6 +174,7 @@ void list(uint16_t start, uint16_t end, uint8_t all, uint8_t ln, uint8_t addr, u case IND : case INDX: case INDY: putchar('('); break; + case BREG: putchar('b'); break; } break; case TOK_OF: |