Annotation of nono/debugger/disasm.h, revision 1.1.1.8

1.1       root        1: //
                      2: // nono
1.1.1.2   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
1.1.1.5   root        7: //
                      8: // 逆アセンブラ (共通部分)
                      9: //
1.1       root       10: 
                     11: #pragma once
                     12: 
                     13: #include "debugger_private.h"
                     14: 
1.1.1.6   root       15: // 逆アセンブラ(1行分)の基本クラス。
                     16: class DisasmLine
1.1       root       17: {
                     18:  public:
1.1.1.6   root       19:        virtual ~DisasmLine();
1.1       root       20: 
1.1.1.6   root       21:        // mem の位置を1命令逆アセンブルする。
1.1       root       22:        // 成功すれば true、失敗すれば false を返す?
                     23:        // 成功すれば text に出力文字列、ir に命令バイナリがセットされている。
1.1.1.6   root       24:        virtual bool Exec(DebuggerMemoryStream *memp) = 0;
1.1       root       25: 
                     26:        // 出力文字列(ダンプ)
                     27:        std::string dump {};
                     28: 
                     29:        // 出力文字列(命令)
                     30:        std::string text {};
                     31: 
1.1.1.6   root       32:        // 別名 (m88k で使う)
                     33:        std::string alttext {};
                     34: 
1.1       root       35:        // この命令のバイナリ列
                     36:        // (メモリイメージ順)
                     37:        std::vector<uint8> bin {};
                     38: 
1.1.1.6   root       39:        // メモリアクセス
                     40:        DebuggerMemoryStream *mem {};
1.1       root       41: 
1.1.1.6   root       42:  protected:
                     43:        // 継承先の Exec() の先頭で呼び出すこと。
                     44:        void ExecInit(DebuggerMemoryStream *mem_) {
                     45:                mem = mem_;
                     46:                dump.clear();
1.1       root       47:                text.clear();
1.1.1.6   root       48:                alttext.clear();
1.1       root       49:                bin.clear();
                     50:        }
                     51: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.