projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shutdown関数の追加
[YACASL2.git]
/
include
/
casl2.h
diff --git
a/include/casl2.h
b/include/casl2.h
index
7cd937c
..
038f3dd
100644
(file)
--- a/
include/casl2.h
+++ b/
include/casl2.h
@@
-78,19
+78,32
@@
typedef enum {
NONE = 0,
} CMDTYPE;
NONE = 0,
} CMDTYPE;
-/* 命令コード
の
配列 */
+/* 命令コード配列 */
typedef struct {
char *cmd;
CMDTYPE type;
WORD code;
} CMDCODEARRAY;
typedef struct {
char *cmd;
CMDTYPE type;
WORD code;
} CMDCODEARRAY;
+/* 命令コード配列のサイズ */
+extern int cmdcodesize;
+
/* 命令コードのハッシュ表 */
typedef struct _CMDCODETAB {
struct _CMDCODETAB *next;
CMDCODEARRAY *cca;
} CMDCODETAB;
/* 命令コードのハッシュ表 */
typedef struct _CMDCODETAB {
struct _CMDCODETAB *next;
CMDCODEARRAY *cca;
} CMDCODETAB;
+extern CMDCODETAB **cmdtype_code;
+extern CMDCODETAB **code_type;
+extern int cmdtabsize;
+
+/* COMET II仮想マシンのリセット */
+void reset();
+
+/* COMET II仮想マシンのシャットダウン */
+void shutdown();
+
/* 命令と命令タイプがキーのハッシュ表を作成する */
bool create_cmdtype_code();
/* 命令と命令タイプがキーのハッシュ表を作成する */
bool create_cmdtype_code();