#include "codes.h"
// REX prefix: 0b0100WRXB
std::vector<uint8_t> REX(std::string s) {
uint8_t result{0b01000000};
if (s == "W")
result |= 0b00001000;
if (s == "R")
result |= 0b00000100;
if (s == "X")
result |= 0b00000010;
if (s == "B")
result |= 0b00000001;
return { result };
}