{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" },
{ 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" },
{ 122, "cannot create hash table" },
- { 123, "illegal string" },
+ { 123, "unclosed quote" },
{ 124, "more than one character in literal" },
{ 125, "not GR in operand x" },
{ 201, "execute - out of COMET II memory" },
{
const char *default_name = "a.o";
- if(optarg == NULL) {
+ if(str == NULL) {
return default_name;
} else {
return str;