|
|
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:
7: #pragma once
8:
9: #include "disasm.h"
10: #include "m88100.h"
11:
12: class m88100disasm : public Disasm
13: {
1.1.1.2 ! root 14: using inherited = Disasm;
1.1 root 15: public:
16: m88100disasm(DebuggerMD *m);
1.1.1.2 ! root 17: ~m88100disasm() override;
1.1 root 18:
1.1.1.2 ! root 19: bool Exec(saddr_t laddr) override;
1.1 root 20:
21: private:
1.1.1.2 ! root 22: bool opt_alias = true; // いくつかの命令を別名にディスアセンブルする
! 23:
1.1 root 24: uint32 peek();
25: uint32 fetch();
26:
27: uint32 xip = 0;
28: uint32 phys_xip = 0;
29:
30: uint32 opX = 0;
31: std::string name {};
32: std::string arg0 {};
33: std::string arg1 {};
34: std::string arg2 {};
35:
36: std::string rd();
37: std::string rs1();
38: std::string rs2();
39: std::string imm16();
40: std::string d16();
41: std::string crs();
42: std::string fcrs();
43: std::string fsize(uint32 t);
44: std::string fsize();
45: std::string wo5();
46: std::string cio();
47: std::string b5();
48: std::string m5();
49: std::string vec9();
50:
51: void ops_bb(std::string namebase);
52: void ops_bcnd(std::string namebase);
53: void ops_tb(std::string namebase);
54: void ops_ldst_reg(std::string namebase);
55:
56: void op_unimpl();
57:
58: #define OP_PROTO(name) void __CONCAT(op_,name)()
59: #include "m88100ops.h"
60: #undef OP_PROTO
61: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.