| 1 |
// |
| 2 |
// Copyright (C) 2010 Wayne Meissner |
| 3 |
// Copyright (c) 2008-2009, Petr Kobalicek <[email protected]> |
| 4 |
// |
| 5 |
// Permission is hereby granted, free of charge, to any person |
| 6 |
// obtaining a copy of this software and associated documentation |
| 7 |
// files (the "Software"), to deal in the Software without |
| 8 |
// restriction, including without limitation the rights to use, |
| 9 |
// copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 |
// copies of the Software, and to permit persons to whom the |
| 11 |
// Software is furnished to do so, subject to the following |
| 12 |
// conditions: |
| 13 |
// |
| 14 |
// The above copyright notice and this permission notice shall be |
| 15 |
// included in all copies or substantial portions of the Software. |
| 16 |
// |
| 17 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 |
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 19 |
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 20 |
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 21 |
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 22 |
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 23 |
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 24 |
// OTHER DEALINGS IN THE SOFTWARE. |
| 25 |
|
| 26 |
|
| 27 |
package com.kenai.jnr.x86asm; |
| 28 |
|
| 29 |
@Deprecated |
| 30 |
public class OperandFlags { |
| 31 |
public static final int // x86 |
| 32 |
O_G8 = 0x01, |
| 33 |
O_G16 = 0x02, |
| 34 |
O_G32 = 0x04, |
| 35 |
O_G64 = 0x08, |
| 36 |
O_MEM = 0x40, |
| 37 |
O_IMM = 0x80, |
| 38 |
|
| 39 |
O_G8_16_32_64 = O_G64 | O_G32 | O_G16 | O_G8, |
| 40 |
O_G16_32_64 = O_G64 | O_G32 | O_G16, |
| 41 |
O_G32_64 = O_G64 | O_G32, |
| 42 |
|
| 43 |
// x87 |
| 44 |
O_FM_1 = 0x01, |
| 45 |
O_FM_2 = 0x02, |
| 46 |
O_FM_4 = 0x04, |
| 47 |
O_FM_8 = 0x08, |
| 48 |
O_FM_10 = 0x10, |
| 49 |
|
| 50 |
O_FM_2_4 = O_FM_2 | O_FM_4, |
| 51 |
O_FM_2_4_8 = O_FM_2 | O_FM_4 | O_FM_8, |
| 52 |
O_FM_4_8 = O_FM_4 | O_FM_8, |
| 53 |
O_FM_4_8_10 = O_FM_4 | O_FM_8 | O_FM_10, |
| 54 |
|
| 55 |
// mm|xmm |
| 56 |
O_NOREX = 0x01, // Used by MMX/SSE instructions, O_G8 is never used for them |
| 57 |
O_MM = 0x10, |
| 58 |
O_XMM = 0x20, |
| 59 |
|
| 60 |
O_MM_MEM = O_MM | O_MEM, |
| 61 |
O_XMM_MEM = O_XMM | O_MEM, |
| 62 |
O_MM_XMM = O_MM | O_XMM, |
| 63 |
O_MM_XMM_MEM = O_MM | O_XMM | O_MEM; |
| 64 |
} |