Began framework for a disassembler.
[aesalon.git] / src / monitor / asm / Instruction.cpp
blob1986c9b0ac3477468ab03516a17952901323f39f
1 #include "Instruction.h"
3 namespace Aesalon {
4 namespace Monitor {
5 namespace ASM {
7 Instruction::Instruction(Platform::MemoryAddress address, Misc::SmartPointer<Block> raw)
8 : address(address), raw(raw) {
10 parse_opcode();
13 void Instruction::parse_opcode() {
14 #if AESALON_PLATFORM == AESALON_PLATFORM_x86 || AESALON_PLATFORM == AESALON_PLATFORM_x86_64
15 if(*raw->get_data(0) == 0x0f) { /* it's a two-byte opcode */ }
16 #endif
19 } // namespace ASM
20 } // namespace Monitor
21 } // namespace Aesalon