This commit is contained in:
Kelvin Sherlock 2019-12-13 00:16:53 -05:00
parent 671c81a754
commit b52bda4fb6
2 changed files with 4 additions and 4 deletions

View File

@ -133,7 +133,8 @@ int main(int argc, char **argv) {
case 'X': express = false; break;
case 'C': compress = false; break;
case 'D': add_define(optarg); break;
case 'v': verbose = true;
case 'v': verbose = true; break;
case 'S': script = true; break;
case ':':
case '?':
default:
@ -145,8 +146,7 @@ int main(int argc, char **argv) {
argv += optind;
argc -= optind;
if (!argc) usage(EX_USAGE);
if (!script && !argc) usage(EX_USAGE);
if (script && argc > 1) usage(EX_USAGE);
if (argc == 1 && is_S(*argv)) script = true;

View File

@ -507,7 +507,7 @@ operand:
void evaluate(label_t label, opcode_t opcode, operand_t operand);
evaluate(label, opcode, opcode);
evaluate(label, opcode, operand);
}