From 576c4381be6980f95d63ea91f8737dfc22fa8dbe Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 5 Mar 2019 21:25:24 +0100 Subject: Complete revamp of disassembler and assembler arguments processing. Instructions description in instruction.cpp has been pragmatically augmented by tool based on Python MIPS simulator, hazards analyzer https://github.com/ppisa/apo-simarch That code has been originally distilled from from GNU binutils sources. Implementation is now inline with my original proposal Previous solution gets untenable with more complex instructions and its complexity would grow extremely. MIPS instruction set with coprocessor instructions which use sel field, rd used as index, rt as destination and other peculiarities in newer versions cannot be processed based on basic CPU control signals. Signed-off-by: Pavel Pisa --- qtmips_machine/instruction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_machine/instruction.h') diff --git a/qtmips_machine/instruction.h b/qtmips_machine/instruction.h index a3bfb79..f86d10c 100644 --- a/qtmips_machine/instruction.h +++ b/qtmips_machine/instruction.h @@ -117,7 +117,7 @@ public: QString to_str(std::int32_t inst_addr = 0) const; - static Instruction from_string(QString str, bool *pok = nullptr); + static Instruction from_string(QString str, bool *pok = nullptr, std::uint32_t inst_addr = 0); private: std::uint32_t dt; }; -- cgit v1.2.3