projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
命令ハッシュ表の作成方法を変更
[YACASL2.git]
/
src
/
exec.c
diff --git
a/src/exec.c
b/src/exec.c
index
c7c125e
..
048f223
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-768,7
+768,8
@@
void exec()
char *s;
const char *monmsg = "COMET II machine code monitor. Type ? for help.\n";
char *s;
const char *monmsg = "COMET II machine code monitor. Type ? for help.\n";
- create_code_cmdtype(); /* 命令のコードとタイプがキーのハッシュ表を作成 */
+ create_cmdtable(HASH_CODE); /* 命令のコードとタイプがキーのハッシュ表を作成 */
+
if(execmode.trace == true) {
fprintf(stdout, "\nExecuting machine codes\n");
}
if(execmode.trace == true) {
fprintf(stdout, "\nExecuting machine codes\n");
}
@@
-837,7
+838,7
@@
void exec()
}
execfin:
freebps();
}
execfin:
freebps();
- free_c
ode_cmdtype();
/* 命令のコードとタイプがキーのハッシュ表を解放 */
+ free_c
mdtable(HASH_CODE);
/* 命令のコードとタイプがキーのハッシュ表を解放 */
if(cerr->num > 0) {
fprintf(stderr, "Execute error - %d: %s\n", cerr->num, cerr->msg);
}
if(cerr->num > 0) {
fprintf(stderr, "Execute error - %d: %s\n", cerr->num, cerr->msg);
}