bitfields.isa (4158:a3fb9e29c6ce) | bitfields.isa (4276:f0030662ee2a) |
---|---|
1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 44 unchanged lines hidden (view full) --- 53// 54// Authors: Gabe Black 55 56//////////////////////////////////////////////////////////////////// 57// 58// Bitfield definitions. 59// 60 | 1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 44 unchanged lines hidden (view full) --- 53// 54// Authors: Gabe Black 55 56//////////////////////////////////////////////////////////////////// 57// 58// Bitfield definitions. 59// 60 |
61def bitfield EXAMPLE <24>; | 61//Prefixes 62def bitfield REX rex; 63def bitfield LEGACY legacy; |
62 | 64 |
65// Pieces of the opcode 66def bitfield OPCODE_NUM opcode.num; 67def bitfield OPCODE_PREFIXA opcode.prefixA; 68def bitfield OPCODE_PREFIXB opcode.prefixB; 69def bitfield OPCODE_OP opcode.op; 70//The top 5 bits of the opcode tend to split the instructions into groups 71def bitfield OPCODE_OP_TOP5 opcode.op.top5; 72def bitfield OPCODE_OP_BOTTOM3 opcode.op.bottom3; 73 74// Immediate fields 75def bitfield IMMEDIATE immediate; 76def bitfield DISPLACEMENT displacement; 77 78//Modifier bytes 79def bitfield MODRM modRM; 80def bitfield MODRM_MOD modRM.mod; 81def bitfield MODRM_REG modRM.reg; 82def bitfield MODRM_RM modRM.rm; 83 84def bitfield SIB sib; 85def bitfield SIB_SCALE sib.scale; 86def bitfield SIB_INDEX sib.index; 87def bitfield SIB_BASE sib.base; |
|