This commit is contained in:
Přemysl Eric Janouch 2016-12-24 00:47:11 +01:00
parent 99330e88f2
commit b4b3ffef24
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

@ -86,7 +86,7 @@ enum command
SET, EAT, INCACC, DECACC
};
bool grouped[] = { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 };
bool grouped[] = { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 };
struct instruction { enum command cmd; int offset; size_t arg; };
#define INSTRUCTION(c, o, a) (struct instruction) { (c), (o), (a) }
@ -363,7 +363,7 @@ int
main (int argc, char *argv[])
{
if (argc > 3)
exit_fatal ("usage: %s [INPUT-FILE]\n", argv[0]);
exit_fatal ("usage: %s [INPUT-FILE] [OUTPUT-FILE]\n", argv[0]);
FILE *input_file = stdin;
if (argc > 1 && !(input_file = fopen (argv[1], "r")))