X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fmonitor.h;h=fe7e1cde45dae4de0eb8c200b14d57f756b711ce;hb=7afcf780cbc7d4f2834b9ca42cca1b3754621960;hp=b9ca4540a3cb5e85695d364a09e18766305604bb;hpb=3614c0ec65e1548e52d9149e6ef6925f37458fc6;p=YACASL2.git diff --git a/include/monitor.h b/include/monitor.h index b9ca454..fe7e1cd 100644 --- a/include/monitor.h +++ b/include/monitor.h @@ -1,14 +1,12 @@ -#ifndef MONITOR_INCLUDE -#define MONITOR_INCLUDE +#ifndef YACASL2_MONITOR_H_INCLUDE +#define YACASL2_MONITOR_H_INCLUDE #include #include #include -#include "hash.h" -#include "cmem.h" -#include "cerr.h" +#include "assemble.h" #include "exec.h" -#include "word.h" +#include "load.h" /** * @brief モニター @@ -52,6 +50,12 @@ enum { MONINSIZE = 40 /**<モニターの、入力領域 */ }; +typedef enum { + MONREPEAT = 0, + MONNEXT = 1, + MONQUIT = 2, +} MONCMDTYPE; + /** * @brief アドレスのハッシュ値を返す * @@ -79,6 +83,16 @@ MONARGS *monargstok(const char *str); */ MONCMDLINE *monlinetok(const char *line); +/** + * @brief モニターの命令を実行する + * + * @return モニター命令の種類 + * + * @param *cmd モニター命令 + * @param *args モニター命令の引数 + */ +MONCMDTYPE monitorcmd(char *cmd, MONARGS *args); + /** * @brief ブレークポイント表にアドレスがある場合はtrue、ない場合はfalseを返す * @@ -114,4 +128,11 @@ bool delbps(WORD adr); */ void freebps(); -#endif /* end of MONITOR_INCLUDE */ +/** + * @brief COMET IIモニターを起動する + * + * @return なし + */ +void monitor(); + +#endif