From 28f41cf689def99fb586bfca47b7e1786227a5a2 Mon Sep 17 00:00:00 2001 From: navewindre Date: Fri, 12 Jul 2024 05:40:41 +0200 Subject: base shit --- src/x86.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/x86.h') 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, -- cgit v1.2.3