1 | /* $Id: cidet-instr-1.cpp 53548 2014-12-16 17:55:40Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * CPU Instruction Decoding & Execution Tests - First bunch of instructions.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2014 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.215389.xyz. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * The contents of this file may alternatively be used under the terms
|
---|
18 | * of the Common Development and Distribution License Version 1.0
|
---|
19 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | * CDDL are applicable instead of those of the GPL.
|
---|
22 | *
|
---|
23 | * You may elect to license modified versions of this file under the
|
---|
24 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | */
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 | /*******************************************************************************
|
---|
30 | * Header Files *
|
---|
31 | *******************************************************************************/
|
---|
32 | #include "cidet.h"
|
---|
33 |
|
---|
34 |
|
---|
35 |
|
---|
36 | static DECLCALLBACK(int) cidetInOutAdd(PCIDETCORE pThis, bool fInvalid)
|
---|
37 | {
|
---|
38 | return 0;
|
---|
39 | }
|
---|
40 |
|
---|
41 |
|
---|
42 | /** First bunch of instructions. */
|
---|
43 | const CIDETINSTR g_aCidetInstructions1[] =
|
---|
44 | {
|
---|
45 | {
|
---|
46 | "add Eb,Gb", cidetInOutAdd, 1, {0x00, 0, 0}, 0, 2,
|
---|
47 | { CIDET_OF_K_GPR | CIDET_OF_Z_BYTE | CIDET_OF_M_RM,
|
---|
48 | CIDET_OF_K_GPR | CIDET_OF_Z_BYTE | CIDET_OF_M_REG,
|
---|
49 | 0, 0 }, CIDET_IF_MODRM
|
---|
50 | },
|
---|
51 | #if 0
|
---|
52 | {
|
---|
53 | "add Ev,Gv", cidetInOutAdd, 1, {0x00, 0, 0}, 0, 2,
|
---|
54 | { CIDET_OF_K_GPR | CIDET_OF_Z_VAR_WDQ | CIDET_OF_M_RM,
|
---|
55 | CIDET_OF_K_GPR | CIDET_OF_Z_VAR_WDQ | CIDET_OF_M_REG,
|
---|
56 | 0, 0 }, CIDET_IF_MODRM
|
---|
57 | },
|
---|
58 | #endif
|
---|
59 | };
|
---|
60 | /** Number of instruction in the g_aInstructions1 array. */
|
---|
61 | const uint32_t g_cCidetInstructions1 = RT_ELEMENTS(g_aCidetInstructions1);
|
---|
62 |
|
---|