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
e19b415
..
340ec52
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-5,11
+5,16
@@
#include "exec.h"
#include "cerr.h"
#include "exec.h"
#include "cerr.h"
-/* 実行エラーの定義 */
+/**
+ * アセンブルファイル読み込みエラーの定義
+ */
static CERR cerr_loadassemble[] = {
{ 201, "Loading - full of COMET II memory" },
};
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" },
static CERR cerr_exec[] = {
{ 202, "SVC input - out of Input memory" },
{ 203, "SVC output - out of COMET II memory" },
@@
-409,7
+414,7
@@
bool exec()
}
}
free_chk(errpr, "errpr");
}
}
free_chk(errpr, "errpr");
- /* 主ã
\82
ªã
\83
\9a
ã
\83
©ã
\83
³ã
\83
\89
ã
\81
\8c
1ã
\80
\9c
4の場合、第2ビットを無視 */
+ /* 主ã
\82
ªã
\83
\9a
ã
\83
©ã
\83
³ã
\83
\89
ã
\81
\8c
1ã
\81
\8b
ã
\82
\89
4の場合、第2ビットを無視 */
if(op >= 0x1000 && op <= 0x4FFF) {
op &= 0xFB00;
}
if(op >= 0x1000 && op <= 0x4FFF) {
op &= 0xFB00;
}
@@
-530,6
+535,7
@@
bool exec()
default:
break;
}
default:
break;
}
+ /* クロック周波数の設定 */
do {
clock_end = clock();
} while(clock_end - clock_begin < CLOCKS_PER_SEC / sys->clocks);
do {
clock_end = clock();
} while(clock_end - clock_begin < CLOCKS_PER_SEC / sys->clocks);