diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-10-24 12:58:52 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-10-24 12:58:52 +0200 |
| commit | 856fd58549e5bf50e800a665f9deb27d967df2fb (patch) | |
| tree | 6950210e5ae3618b501a7045f10f8fc06dd903df /src/libs/reference_decoder/sim86_instruction_table.cpp | |
| parent | d8b3ca9d02377cf04a09e0f518a3385b7324bc4d (diff) | |
checkpoint
Diffstat (limited to 'src/libs/reference_decoder/sim86_instruction_table.cpp')
| -rw-r--r-- | src/libs/reference_decoder/sim86_instruction_table.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libs/reference_decoder/sim86_instruction_table.cpp b/src/libs/reference_decoder/sim86_instruction_table.cpp new file mode 100644 index 0000000..be3ec82 --- /dev/null +++ b/src/libs/reference_decoder/sim86_instruction_table.cpp @@ -0,0 +1,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; +} |
