summaryrefslogtreecommitdiffhomepage
path: root/asm/assembler.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-15 22:05:14 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-15 22:05:14 +0100
commit300219dc8519720a36525c7b40c6a327580fe0bd (patch)
treeffeaaaeadb670a52e1eef361983d63309e5a3343 /asm/assembler.h
parenta3b4cd4fdd4340c952eaa00bca9bebf817b901ae (diff)
Evaluation (WIP)
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 bd291b8..e719ea4 100644
--- a/asm/assembler.h
+++ b/asm/assembler.h
@@ -111,6 +111,22 @@ public:
int32_t m_offs;
};
+ // 64 bit Ptr to 64 bit Memory
+ 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 = ""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;
+ };
+
class Label
{
public: