summaryrefslogtreecommitdiffhomepage
path: root/asm/assembler.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-18 17:55:27 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-18 17:55:27 +0100
commit031bfef600e7021c8bd72e2e663f368e7386b131 (patch)
tree4e724c3b13278e5c6fb90a9380d19dc1d253b4b3 /asm/assembler.h
parent927eb99e75325164a541c2638e1e607294019381 (diff)
Added Asm ops
Diffstat (limited to 'asm/assembler.h')
-rw-r--r--asm/assembler.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/asm/assembler.h b/asm/assembler.h
index e719ea4..ea23fbc 100644
--- a/asm/assembler.h
+++ b/asm/assembler.h
@@ -95,6 +95,22 @@ public:
std::string m_name;
};
+ // 64 bit Ptr to 8 bit Memory
+ 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 = ""s, int32_t offs = 0): m_reg(reg), m_reg2(reg2), m_offs(offs) {}
+ std::string reg() { return m_reg; }
+ std::string reg2() { return m_reg2; }
+ int32_t offs() { return m_offs; }
+
+ private:
+ std::string m_reg;
+ std::string m_reg2;
+ int32_t m_offs;
+ };
+
// 64 bit Ptr to 32 bit Memory
class Mem32Ptr64
{