summaryrefslogtreecommitdiff
path: root/src/x86.h
diff options
context:
space:
mode:
authornavewindre <nw@moneybot.cc>2024-07-12 05:40:41 +0200
committernavewindre <nw@moneybot.cc>2024-07-12 05:40:41 +0200
commit9d7cb5b7ad1cd03f9d3491d0eb8544460d975c81 (patch)
tree4a843c7785035ca548625ccf988ac924b8815f85 /src/x86.h
parent6634e62e788f10b2ba55c548381162d3ef1d37a0 (diff)
base shit
Diffstat (limited to 'src/x86.h')
-rw-r--r--src/x86.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x86.h b/src/x86.h
index 484e5c2..cf745d4 100644
--- a/src/x86.h
+++ b/src/x86.h
@@ -50,6 +50,8 @@ constexpr U32 x86_encode_mov_imm32( U32 reg ) { return ( 0xb8 + reg ); }
constexpr U32 x86_encode_push_reg( U32 reg ) { return 0x50 | ( reg & 7 ); }
constexpr U32 x86_encoded_pop_reg( U32 reg ) { return 0x58 | ( reg & 7 ); }
+
+
enum X86Instructions_t : U8 {
RET_NEAR = 0xc3,
RET_FAR = 0xcb,