summaryrefslogtreecommitdiffhomepage
path: root/asm/assembler.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-21 21:38:56 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-21 21:38:56 +0100
commit39bccce4fdd1d5ebe312321c963e0325e4d696c5 (patch)
tree6663c36c77a7209bb2318d1f20d2b23dcf5782e0 /asm/assembler.h
parent7fd9bbf4ea1ba5ea1b30e9ba3039195ab40c246a (diff)
Bugfixing of stack (WIP)
Diffstat (limited to 'asm/assembler.h')
-rw-r--r--asm/assembler.h30
1 files changed, 15 insertions, 15 deletions
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;