X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fcasl2.c;h=c3a555015a77009bb2c56ded13fe22fd7e18d61f;hp=8ae34959ffd3cc06a9acdd84a17a56aad7e96a33;hb=80ce7950a164d14c61db94dc6d6d1eccef8b32cc;hpb=bb9d41081432d335dcb0b3ad8c9d7dd9c6790b6f diff --git a/src/casl2.c b/src/casl2.c index 8ae3495..c3a5550 100644 --- a/src/casl2.c +++ b/src/casl2.c @@ -23,11 +23,6 @@ static struct option longopts[] = { {0, 0, 0, 0}, }; -/* アセンブルモード: src, label, onlylabel, asdetail, onlyassemble */ -ASMODE asmode = {false, false, false, false, false}; -/* 実行モード: trace, logical, dump */ -EXECMODE execmode = {false, false, false}; - /* エラー番号とエラーメッセージ */ CERRARRAY cerr[] = { { 101, "label already defined" }, @@ -35,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" }, @@ -81,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;