#pragma once #include #include #include // REX prefix: 0b0100WRXB std::vector REX(const std::string& s); // Manual, page 530 // Reg + Reg/Memory uint8_t ModRM(const std::string& reg, const std::string& rm); // Just the number of reg, e.g. for encoding inside primary opcode uint8_t RegNo(const std::string& reg);