summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/codes.h
blob: 0ff17f1bf207ddc4c0d289074e7e64c4e4e82a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <cstdint>
#include <string>
#include <vector>

// REX prefix: 0b0100WRXB
std::vector<uint8_t> REX(const std::string& s);

// Manual, page 530
// Reg + Reg/Memory
uint8_t ModRM(const std::string& reg, const std::string& rm);