summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/trivials.h
blob: 72ea3f8fbc9a7b1a82f2ccfa819f92da15df6b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Trivial Operations, without arguments

#pragma once

#include <asm/chunk.h>

// No Operation
class Op_nop: public OpSimple
{
public: Op_nop() : OpSimple({ 0x90 }) {}
};

// Return from procedure
class Op_ret: public OpSimple
{
public: Op_ret() : OpSimple({ 0xC3 }) {} // near return; TODO: far return is 0xCB
};

// Syscall
class Op_syscall: public OpSimple
{
public: Op_syscall() : OpSimple({ 0x0F, 0x05 }) {}
};