X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fcasl2.c;h=c3a555015a77009bb2c56ded13fe22fd7e18d61f;hp=457dde74e4d2b8de99afef2f7b341dc4b6036f73;hb=285d44a446b45fa1a5ac66617b6920bc7ba81fa6;hpb=5d1bc67b1389b89b86a98e9832b3600f8ceb26de diff --git a/src/casl2.c b/src/casl2.c index 457dde7..c3a5550 100644 --- a/src/casl2.c +++ b/src/casl2.c @@ -30,19 +30,19 @@ CERRARRAY cerr[] = { { 103, "label not found" }, { 104, "label length is too long" }, { 105, "no command in the line" }, - { 106, "operand count mismatch" }, + { 106, "operand mismatch in assemble command" }, { 107, "no label in START" }, { 108, "not command of operand \"r\"" }, { 109, "not command of operand \"r1,r2\"" }, { 110, "not command of operand \"r,adr[,x]\"" }, { 111, "not command of operand \"adr[,x]\"" }, { 112, "not command of no operand" }, - { 113, "command not defined" }, + { 113, "operand too many in machine command" }, { 114, "not integer" }, { 115, "not hex" }, { 116, "out of hex range" }, - { 117, "operand is too many" }, - { 118, "operand length is too long" }, + { 117, "operand too many in DC" }, + { 118, "operand length too long" }, { 119, "out of COMET II memory" }, { 120, "GR0 in operand x" }, { 121, "cannot get operand token" }, @@ -76,7 +76,7 @@ const char *objfile_name(const char *str) { const char *default_name = "a.o"; - if(optarg == NULL) { + if(str == NULL) { return default_name; } else { return str;