2020-09-13 21:32:55 -04:00
|
|
|
#pragma once
|
|
|
|
|
2020-08-22 23:30:17 -04:00
|
|
|
/*!
|
|
|
|
* @file InstructionDecode.h
|
|
|
|
* The Instruction Decoder - converts a LinkedWord into a Instruction.
|
|
|
|
* This is the part of the disassembler that decodes MIPS instructions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NEXT_INSTRUCTIONDECODE_H
|
|
|
|
#define NEXT_INSTRUCTIONDECODE_H
|
|
|
|
|
|
|
|
#include "Instruction.h"
|
|
|
|
|
2021-01-06 20:04:15 -05:00
|
|
|
namespace decompiler {
|
2020-08-22 23:30:17 -04:00
|
|
|
class LinkedWord;
|
|
|
|
class LinkedObjectFile;
|
|
|
|
|
|
|
|
Instruction decode_instruction(LinkedWord& word, LinkedObjectFile& file, int seg_id, int word_id);
|
2021-01-06 20:04:15 -05:00
|
|
|
} // namespace decompiler
|
2020-08-22 23:30:17 -04:00
|
|
|
#endif // NEXT_INSTRUCTIONDECODE_H
|