Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
38
Src/Wasabi/api/script/debugger/disasm.h
Normal file
38
Src/Wasabi/api/script/debugger/disasm.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#ifndef __MakiDisassembler_H
|
||||
#define __MakiDisassembler_H
|
||||
|
||||
#include <bfc/ptrlist.h>
|
||||
|
||||
class SourceCodeLine;
|
||||
class SourceCodeLineI;
|
||||
|
||||
enum {
|
||||
OPCODE_TYPE_VOID = 0,
|
||||
OPCODE_TYPE_VAR,
|
||||
OPCODE_TYPE_PTR,
|
||||
OPCODE_TYPE_DLF,
|
||||
OPCODE_TYPE_NDLF,
|
||||
OPCODE_TYPE_CLASSID,
|
||||
OPCODE_TYPE_DISCARD,
|
||||
};
|
||||
|
||||
class MakiDisassembler {
|
||||
public:
|
||||
MakiDisassembler(int vcpuid);
|
||||
virtual ~MakiDisassembler();
|
||||
|
||||
int getVCPUId();
|
||||
int getNumLines();
|
||||
SourceCodeLine *enumLine(int n);
|
||||
int findLine(int pointer);
|
||||
|
||||
private:
|
||||
void disassemble();
|
||||
PtrList<SourceCodeLineI> lines;
|
||||
int vcpuid;
|
||||
static int optable[256];
|
||||
static int optableready;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue