X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fexec.h;h=b38e59a060231eb9a43896ebf219c7d4bc796af4;hp=432d3fd939509fa55348d5e8a9028a5de8cc3aef;hb=c5d39cec3839fa4e8cbac9dc0a0d5e28c0a7d555;hpb=15a07be760d84746bbace2d70326cd939f4568fd diff --git a/include/exec.h b/include/exec.h index 432d3fd..b38e59a 100644 --- a/include/exec.h +++ b/include/exec.h @@ -23,11 +23,14 @@ typedef struct { bool trace; /**<レジストリの内容をステップごとに表示する場合はtrue */ bool logical; /**<レジストリの内容を論理値(0から65535)で表示する場合はtrue */ bool dump; /**<メモリの内容をステップごとに表示する場合はtrue */ - bool step; /**<ステップ実行の場合はtrue */ + int dump_start; /**<メモリの内容をステップごとに表示する場合の開始アドレス */ + int dump_end; /**<メモリの内容をステップごとに表示する場合の終了アドレス */ + bool monitor; /**<モニターモードの場合はtrue */ + bool step; /**<ステップ実行の場合はtrue */ } EXECMODE; /** - * @brief 実行モード: trace, logical, dump, step + * @brief 実行モード: trace, logical, dump, monitor, step */ extern EXECMODE execmode; @@ -43,17 +46,13 @@ void addcerrlist_load(); /** * @brief 指定されたファイルからアセンブル結果を読み込む - */ -bool loadassemble(const char *file); - -/** - * @brief 汎用レジスタの番号からレジスタを表す文字列を返す * - * @return 汎用レジスタを表す文字列。「GR0」「GR1」・・・「GR7」のいずれか + * @return 読み込み終了アドレス。読み込めなかった場合は、0 * - * @param word レジスタ番号[0-7]を表すWORD値 + * @param file 読み込むファイル名 + * @param start 読み込み開始アドレス */ -char *grstr(WORD word); +WORD loadassemble(const char *file, WORD start); /** * @class Exec