X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fcomet2.c;h=bfe1634a7d8c91ad0305c25be73d7ab9d7a13a71;hp=1c47d193d1305cf1df2f83038f273d78a539dd1a;hb=ccc3acda4256e10a822e41e84f6c9991271c2f61;hpb=6d481ded788fac267c4d6a115184936052df7430 diff --git a/src/comet2.c b/src/comet2.c index 1c47d19..bfe1634 100644 --- a/src/comet2.c +++ b/src/comet2.c @@ -16,7 +16,19 @@ static struct option longopts[] = { EXECMODE execmode = {false, false, false}; -/* 指定されたファイルからCOMET II仮想メモリ(アセンブル結果)を読込 */ +/* エラー番号とエラーメッセージ */ +CERRARRAY cerr[] = { + { 201, "execute - out of COMET II memory" }, + { 202, "SVC input - out of Input memory" }, + { 203, "SVC output - out of COMET II memory" }, + { 204, "Program Register (PR) - out of COMET II memory" }, + { 205, "Stack Pointer (SP) - cannot allocate stack buffer" }, + { 206, "Address - out of COMET II memory" }, + { 207, "Stack Pointer (SP) - out of COMET II memory" }, + { 0, NULL }, +}; + +/* 指定されたファイルからアセンブル結果を読込 */ bool inassemble(char *file) { FILE *fp; reset(); @@ -29,6 +41,7 @@ bool inassemble(char *file) { return true; } +/* comet2コマンド */ int main(int argc, char *argv[]) { int opt;