Download src/binutils/binutils-2.44/include/opcode/i386.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 4.94 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/binutils/binutils-2.44/include/opcode/i386.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/binutils/binutils-2.44/include/opcode/i386.h
-
curl -L -o i386.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/binutils/binutils-2.44/include/opcode/i386.h
4.94 kB
| /* opcode/i386.h -- Intel 80386 opcode macros | |
| Copyright (C) 1989-2025 Free Software Foundation, Inc. | |
| This file is part of GAS, the GNU Assembler, and GDB, the GNU Debugger. | |
| This program is free software; you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation; either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| GNU General Public License for more details. | |
| You should have received a copy of the GNU General Public License | |
| along with this program; if not, write to the Free Software | |
| Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | |
| MA 02110-1301, USA. */ | |
| /* The SystemV/386 SVR3.2 assembler, and probably all AT&T derived | |
| ix86 Unix assemblers, generate floating point instructions with | |
| reversed source and destination registers in certain cases. | |
| Unfortunately, gcc and possibly many other programs use this | |
| reversed syntax, so we're stuck with it. | |
| eg. `fsub %st(3),%st' results in st = st - st(3) as expected, but | |
| `fsub %st,%st(3)' results in st(3) = st - st(3), rather than | |
| the expected st(3) = st(3) - st | |
| This happens with all the non-commutative arithmetic floating point | |
| operations with two register operands, where the source register is | |
| %st, and destination register is %st(i). | |
| The affected opcode map is dceX, dcfX, deeX, defX. */ | |
| /* Set non-zero for broken, compatible instructions. Set to zero for | |
| non-broken opcodes at your peril. gcc generates SystemV/386 | |
| compatible instructions. */ | |
| /* The opcode for the fwait instruction, which disassembler treats as a | |
| prefix when it can. */ | |
| /* Instruction prefixes. | |
| NOTE: For certain SSE* instructions, 0x66,0xf2,0xf3 are treated as | |
| part of the opcode. Other prefixes may still appear between them | |
| and the 0x0f part of the opcode. */ | |
| /* register numbers */ | |
| /* modrm_byte.regmem for twobyte escape */ | |
| /* index_base_byte.index for no index register addressing */ | |
| /* index_base_byte.base for no base register addressing */ | |
| /* modrm.mode = REGMEM_FIELD_HAS_REG when a register is in there */ | |
| /* Extract fields from the mod/rm byte. */ | |
| /* Extract fields from the sib byte. */ | |
| /* x86-64 extension prefix. */ | |
| /* Non-zero if OPCODE is the rex prefix. */ | |
| /* M0 in rex2 prefix represents map0 or map1. */ | |
| /* Indicates 64 bit operand size. */ | |
| /* High extension to reg field of modrm byte. */ | |
| /* High extension to SIB index field. */ | |
| /* High extension to base field of modrm or SIB, or reg field of opcode. */ | |
| /* max operands per insn */ | |
| /* max immediates per insn (lcall, ljmp, insertq, extrq) */ | |
| /* max memory refs per insn (string ops) */ | |
| /* max size of insn mnemonics. */ | |
| /* max size of register name in insn mnemonics. */ | |