Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/Private/External/LC_Assembly.h
Jack Porter 9d2ebe90d2 Merging //UE4/Dev-Main to Dev-Mobile (//UE4/Dev-Mobile)
#rb None
#jira 0

[CL 5396125 by Jack Porter in Dev-Mobile branch]
2019-03-14 00:59:16 -04:00

23 lines
517 B
C++

// Copyright 2011-2019 Molecular Matters GmbH, all rights reserved.
#pragma once
#include "CoreTypes.h"
#include <stdint.h>
namespace assembly
{
// the longest instruction on x86 is 15 bytes (opcode + 14 bytes), which makes this fit into 16 bytes nicely
struct Instruction
{
static const unsigned int MAX_SIZE = 15u;
uint8_t size;
uint8_t code[MAX_SIZE];
};
Instruction MakeNOP(void);
Instruction MakeRelativeNearJump(int32_t displacement);
Instruction MakeRelativeShortJump(int8_t displacement);
}