+#include "cerr.h"
+
+/* 実行エラーの定義 */
+static CERR cerr_loadassemble[] = {
+ { 201, "Loading - full of COMET II memory" },
+};
+
+static CERR cerr_exec[] = {
+ { 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" },
+};
+
+/**
+ * 実行モード: trace, logical, dump
+ */
+EXECMODE execmode = {false, false, false};
+
+/**
+ * 指定されたファイルからアセンブル結果を読み込む
+ */
+bool loadassemble(char *file) {
+ FILE *fp;
+ bool status = true;