summaryrefslogtreecommitdiff
path: root/src/sim86/libs/reference_decoder/sim86_instruction_table.cpp
blob: be3ec82df3972ee0e82de9b7f232ee0b895b54dc (plain) (blame)
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
/* ========================================================================

   (C) Copyright 2023 by Molly Rocket, Inc., All Rights Reserved.
   
   This software is provided 'as-is', without any express or implied
   warranty. In no event will the authors be held liable for any damages
   arising from the use of this software.
   
   Please see https://computerenhance.com for more information
   
   ======================================================================== */

static instruction_encoding InstructionTable8086[] =
{
#include "sim86_instruction_table.inl"
};

static instruction_table Get8086InstructionTable()
{
    instruction_table Result = {};
    
    Result.EncodingCount = ArrayCount(InstructionTable8086);
    Result.Encodings = InstructionTable8086;
    Result.MaxInstructionByteCount = 15; // NOTE(casey): This is the "Intel-specified" maximum length of an instruction, including prefixes
    
    return Result;
}