projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
テストの修正
[YACASL2.git]
/
include
/
exec.h
diff --git
a/include/exec.h
b/include/exec.h
index
931f799
..
b38e59a
100644
(file)
--- a/
include/exec.h
+++ b/
include/exec.h
@@
-3,9
+3,14
@@
#include <stdbool.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdio.h>
+#include <assert.h>
+#include <time.h>
#include "struct.h"
#include "word.h"
#include "cmem.h"
#include "struct.h"
#include "word.h"
#include "cmem.h"
+#include "cerr.h"
+#include "monitor.h"
+#include "disassemble.h"
enum {
INSIZE = 256 /**<IN命令の、入力領域 */
enum {
INSIZE = 256 /**<IN命令の、入力領域 */
@@
-15,13
+20,17
@@
enum {
* @brief 実行モードを表すデータ型
*/
typedef struct {
* @brief 実行モードを表すデータ型
*/
typedef struct {
- bool trace; /**<レジストリの内容を表示する場合はtrue */
+ bool trace; /**<レジストリの内容を
ステップごとに
表示する場合はtrue */
bool logical; /**<レジストリの内容を論理値(0から65535)で表示する場合はtrue */
bool logical; /**<レジストリの内容を論理値(0から65535)で表示する場合はtrue */
- bool dump; /**<メモリの内容を表示する場合はtrue */
+ bool dump; /**<メモリの内容をステップごとに表示する場合はtrue */
+ int dump_start; /**<メモリの内容をステップごとに表示する場合の開始アドレス */
+ int dump_end; /**<メモリの内容をステップごとに表示する場合の終了アドレス */
+ bool monitor; /**<モニターモードの場合はtrue */
+ bool step; /**<ステップ実行の場合はtrue */
} EXECMODE;
/**
} EXECMODE;
/**
- * @brief 実行モード: trace, logical, dump
+ * @brief 実行モード: trace, logical, dump
, monitor, step
*/
extern EXECMODE execmode;
*/
extern EXECMODE execmode;
@@
-37,9
+46,13
@@
void addcerrlist_load();
/**
* @brief 指定されたファイルからアセンブル結果を読み込む
/**
* @brief 指定されたファイルからアセンブル結果を読み込む
+ *
+ * @return 読み込み終了アドレス。読み込めなかった場合は、0
+ *
+ * @param file 読み込むファイル名
+ * @param start 読み込み開始アドレス
*/
*/
-bool loadassemble(const char *file);
-
+WORD loadassemble(const char *file, WORD start);
/**
* @class Exec
/**
* @class Exec
@@
-369,8
+382,11
@@
void svc();
* @brief COMET IIのメモリを表示する
*
* @return なし
* @brief COMET IIのメモリを表示する
*
* @return なし
+ *
+ * @param start 表示の開始アドレス
+ * @param end 表示の終了アドレス
*/
*/
-void dumpmemory();
+void dumpmemory(
WORD start, WORD end
);
/**
* @brief COMET IIのレジスタを表示する
/**
* @brief COMET IIのレジスタを表示する