diff options
| author | boris <wzn@moneybot.cc> | 2018-11-28 16:01:44 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-11-28 16:01:44 +1300 |
| commit | 1fc179609e1392285e7f3fd01289895c6e5de66c (patch) | |
| tree | 20200107fb027a63078c6cb63bc4b3f894c3228c /loader/x86.h | |
| parent | 3d412a4b30a9f7c7f51ea6562e694315948bd3da (diff) | |
oopsie >w<
it appears i've made a fucky wucky ;w;www
Diffstat (limited to 'loader/x86.h')
| -rw-r--r-- | loader/x86.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/loader/x86.h b/loader/x86.h deleted file mode 100644 index 5208225..0000000 --- a/loader/x86.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once
-#include <inttypes.h>
-
-namespace x86
-{
- enum class reg : size_t {
- eax = 0,
- ecx,
- edx,
- ebx,
- esp,
- ebp,
- esi,
- edi,
-
- /*
- x64:
- r8,
- r9,
- r10,
- r11,
- r12,
- r13,
- r14,
- r15,*/
- };
-
- enum instruction : uint8_t {
- retn_imm16 = 0xc2,
- retn = 0xc3,
- fs = 0x64,
- //its big nigga season
- call = 0xff
- };
-
- __forceinline static uint32_t encode_mov_imm32( x86::reg dreg ) {
- return ( 0xb8 + ( size_t( dreg ) ) );
- }
-
- __forceinline static uint32_t encode_push_reg( x86::reg dreg ) {
- return ( 0x50 | ( ( size_t( dreg ) ) & 7 ) );
- }
-
- __forceinline static uint32_t encode_pop_reg( x86::reg dreg ) {
- return ( 0x58 | ( ( size_t( dreg ) ) & 7 ) );
- }
-};
\ No newline at end of file |
