1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
|
## --------------------------------------------------------------------------
##
## Copyright 1996-2021 The NASM Authors - All Rights Reserved
## See the file AUTHORS included with the NASM distribution for
## the specific copyright holders.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following
## conditions are met:
##
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above
## copyright notice, this list of conditions and the following
## disclaimer in the documentation and/or other materials provided
## with the distribution.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
## CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
## INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
## DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
## NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
## LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
## OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
## EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
##
## --------------------------------------------------------------------------
# The token parameters are in the other:
# TOKEN_TYPE, t_inttwo, t_flags, t_integer
#
# * is replaced with the token name converted to upper case.
# {xxx*yyy} is replaced with the token name stripped from the prefix
# xxx and suffix yyy before converting to upper case.
#
# Tokens other than instructions and registers
#
# The ? operator is a keyword, because ? is a legitimate symbol character
% TOKEN_QMARK, 0, 0, 0
?
% TOKEN_PREFIX, PPS_ASIZE, 0, P_*
a16
a32
a64
asp
% TOKEN_PREFIX, PPS_LOCK, 0, P_*
lock
% TOKEN_PREFIX, PPS_OSIZE, 0, P_*
o16
o32
o64
osp
% TOKEN_PREFIX, PPS_REP, 0, P_*
rep
repe
repne
repnz
repz
xacquire
xrelease
bnd
nobnd
% TOKEN_PREFIX, PPS_TIMES, 0, P_*
times
% TOKEN_PREFIX, PPS_WAIT, 0, P_*
wait
% TOKEN_PREFIX, PPS_REX, TFLAG_BRC, P_*
rex
evex
vex
vex3
vex2
% TOKEN_SIZE, SIZE_*, 0, S_*
byte
word
dword
qword
tword
oword
yword
zword
% TOKEN_SPECIAL, 0, 0, S_*
abs
far
long
near
nosplit
rel
short
strict
to
# PTR is a legitimate symbol, but has an optional warning
% TOKEN_ID, 0, TFLAG_WARN, 0
ptr
# DUP is a legitimate symbol, but also has context-specific use in extops
% TOKEN_ID, 0, TFLAG_DUP, 0
dup
% TOKEN_FLOAT, 0, 0, 0
__?infinity?__
__?nan?__
__?qnan?__
__?snan?__
% TOKEN_FLOATIZE, 0, 0, FLOAT_{__?float*?__}
__?float8?__
__?float16?__
__?float32?__
__?float64?__
__?float80m?__
__?float80e?__
__?float128l?__
__?float128h?__
% TOKEN_FLOATIZE, 0, 0, FLOAT_B{__?bfloat*?__}
__?bfloat16?__
% TOKEN_STRFUNC, 0, 0, STRFUNC_{__?*?__}
__?utf16?__
__?utf16le?__
__?utf16be?__
__?utf32?__
__?utf32le?__
__?utf32be?__
% TOKEN_IFUNC, 0, 0, IFUNC_{__?*?__}
__?ilog2e?__
__?ilog2w?__
__?ilog2f?__
__?ilog2c?__
% TOKEN_*, 0, 0, 0
seg
wrt
% TOKEN_{__?*?__}, 0, 0, 0
__?masm_ptr?__
__?masm_flat?__
% TOKEN_DECORATOR, 0, TFLAG_BRC | TFLAG_BRDCAST , BRC_1TO{1to*}
1to2
1to4
1to8
1to16
1to32
% TOKEN_DECORATOR, 0, TFLAG_BRC, BRC_{*-sae}
rn-sae
rd-sae
ru-sae
rz-sae
% TOKEN_DECORATOR, 0, TFLAG_BRC, BRC_*
sae
z
# Multi-character operators. Used in ppscan().
% TOKEN_SHR, 0, 0, 0
>>
% TOKEN_SAR, 0, 0, 0
>>>
% TOKEN_SHL, 0, 0, 0
<<
<<<
% TOKEN_SDIV, 0, 0, 0
//
% TOKEN_SMOD, 0, 0, 0
%%
% TOKEN_EQ, 0, 0, 0
==
% TOKEN_NE, 0, 0, 0
!=
<>
% TOKEN_LE, 0, 0, 0
<=
% TOKEN_GE, 0, 0, 0
>=
% TOKEN_LEG, 0, 0, 0
<=>
% TOKEN_DBL_AND, 0, 0, 0
&&
% TOKEN_DBL_OR, 0, 0, 0
||
% TOKEN_DBL_XOR, 0, 0, 0
^^
|