From 39bccce4fdd1d5ebe312321c963e0325e4d696c5 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 21 Nov 2020 21:38:56 +0100 Subject: Bugfixing of stack (WIP) --- asm/assembler.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'asm/assembler.h') diff --git a/asm/assembler.h b/asm/assembler.h index 8cdaa31..1fdc658 100644 --- a/asm/assembler.h +++ b/asm/assembler.h @@ -102,11 +102,11 @@ public: class Mem8Ptr64 { public: - Mem8Ptr64(const std::string& reg, int32_t offs = 0): m_reg(reg), m_offs(offs) {} - Mem8Ptr64(const std::string& reg, const std::string& reg2, int32_t offs = 0): m_reg(reg), m_reg2(reg2), m_offs(offs) {} - std::string reg() const { return m_reg; } - std::string reg2() const { return m_reg2; } - int32_t offs() const { return m_offs; } + Mem8Ptr64(const std::string& reg, int32_t offs = 0); + Mem8Ptr64(const std::string& reg, const std::string& reg2, int32_t offs = 0); + std::string reg() const; + std::string reg2() const; + int32_t offs() const; private: std::string m_reg; @@ -118,11 +118,11 @@ public: class Mem32Ptr64 { public: - Mem32Ptr64(const std::string& reg, int32_t offs = 0): m_reg(reg), m_offs(offs) {} - Mem32Ptr64(const std::string& reg, const std::string& reg2, int32_t offs = 0): m_reg(reg), m_reg2(reg2), m_offs(offs) {} - std::string reg() const { return m_reg; } - std::string reg2() const { return m_reg2; } - int32_t offs() const { return m_offs; } + Mem32Ptr64(const std::string& reg, int32_t offs = 0); + Mem32Ptr64(const std::string& reg, const std::string& reg2, int32_t offs = 0); + std::string reg() const; + std::string reg2() const; + int32_t offs() const; private: std::string m_reg; @@ -134,11 +134,11 @@ public: class Mem64Ptr64 { public: - Mem64Ptr64(const std::string& reg, int32_t offs = 0): m_reg(reg), m_offs(offs) {} - Mem64Ptr64(const std::string& reg, const std::string& reg2, int32_t offs = 0): m_reg(reg), m_reg2(reg2), m_offs(offs) {} - std::string reg() const { return m_reg; } - std::string reg2() const { return m_reg2; } - int32_t offs() const { return m_offs; } + Mem64Ptr64(const std::string& reg, int32_t offs = 0); + Mem64Ptr64(const std::string& reg, const std::string& reg2, int32_t offs = 0); + std::string reg() const; + std::string reg2() const; + int32_t offs() const; private: std::string m_reg; -- cgit v1.2.3