2015-06-24 19:26:19 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
2015-08-28 21:01:18 -04:00
|
|
|
#include "CPU.h"
|
2015-06-24 19:26:19 -04:00
|
|
|
|
|
|
|
class DisassemblyInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static string OPName[256];
|
|
|
|
static AddrMode OPMode[256];
|
|
|
|
static uint32_t OPSize[256];
|
|
|
|
|
|
|
|
private:
|
|
|
|
string _disassembly;
|
|
|
|
uint8_t *_opPointer = nullptr;
|
2016-02-13 22:19:42 -05:00
|
|
|
bool _isSubEntryPoint = false;
|
2015-06-24 19:26:19 -04:00
|
|
|
uint32_t _opSize = 0;
|
|
|
|
AddrMode _opMode;
|
|
|
|
uint32_t _lastAddr = 0;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Initialize(uint32_t memoryAddr = 0);
|
|
|
|
|
|
|
|
public:
|
2016-02-13 22:19:42 -05:00
|
|
|
DisassemblyInfo(uint8_t* opPointer, bool isSubEntryPoint);
|
2015-06-24 19:26:19 -04:00
|
|
|
|
2016-02-13 22:19:42 -05:00
|
|
|
void SetSubEntryPoint();
|
2015-06-24 19:26:19 -04:00
|
|
|
string ToString(uint32_t memoryAddr);
|
|
|
|
uint32_t GetSize();
|
|
|
|
};
|
|
|
|
|