summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/jmp.h
blob: a7c7511db9471db416359b0c4d1ba096c131ca2f (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
25
26
27
28
29
30
31
// jmp
// call
// ja
// ...

#pragma once

#include <asm/assembler.h>

class Op_jmp: public Op, public AddressFeature
{
public:
 Op_jmp(const std::string& name, Asm::Args& args, const OP_T& jmp8, const OP_T& jmp32);

 std::vector<uint8_t> getCode() override
 {
  return machine_code;
 }

 size_t size() override
 {
  return machine_code.size();
 }

 bool optimize() override ///< returns true if changed
 {
  return false;
 }

};