asm_opcodes.g 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297
  1. # This file is part of asmc, a bootstrapping OS with minimal seed
  2. # Copyright (C) 2018 Giovanni Mascellani <gio@debian.org>
  3. # https://gitlab.com/giomasce/asmc
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. # 0 -> indirect (all fields set), 1 -> register (REG and SIZE set), 2 -> immediate (OFFSET set)
  15. const OPERAND_TYPE 0
  16. # 0 -> unknown, 1 -> 8 bits, 2 -> 16 bits, 3 -> 32 bits
  17. const OPERAND_SIZE 4
  18. const OPERAND_REG 8
  19. const OPERAND_OFFSET 12
  20. const OPERAND_SEGMENT 16
  21. const OPERAND_SCALE 20
  22. const OPERAND_INDEX_REG 24
  23. const SIZEOF_OPERAND 28
  24. const OPCODE_ARG_NUM 0
  25. const OPCODE_HANDLER 4
  26. const OPCODE_RM8IMM8 8
  27. const OPCODE_RM32IMM32 16
  28. const OPCODE_RM8R8 20
  29. const OPCODE_RM32R32 24
  30. const OPCODE_R8RM8 28
  31. const OPCODE_R32RM32 32
  32. const OPCODE_RM8 36
  33. const OPCODE_RM32 40
  34. const OPCODE_IMM8 44
  35. const OPCODE_IMM32 48
  36. const OPCODE_ALLOW_IMM 52
  37. const OPCODE_ALLOW_RM 56
  38. const OPCODE_RELATIVE 60
  39. const OPCODE_FORCE_8 64
  40. const OPCODE_FORCE_32 68
  41. const OPCODE_NO_OPERAND 72
  42. const OPCODE_RM32IMM8 76
  43. const OPCODE_R32RM8 80
  44. const OPCODE_R32RM16 84
  45. const OPCODE_M8 88
  46. const OPCODE_M16 92
  47. const OPCODE_M32 96
  48. const OPCODE_RM32M 100
  49. const OPCODE_DEFAULT_32 104
  50. const OPCODE_R32RM32IMM32 108
  51. const OPCODE_RM32R32IMM8 112
  52. const OPCODE_RM32R32CL 116
  53. const OPCODE_RM8CL 120
  54. const OPCODE_RM32CL 124
  55. const OPCODE_ALLOW_CL 128
  56. const SIZEOF_OPCODE 132
  57. fun assemble_modrm 3 {
  58. $mod
  59. $reg
  60. $rm
  61. @mod 2 param = ;
  62. @reg 1 param = ;
  63. @rm 0 param = ;
  64. mod 6 << reg 3 << + rm + ret ;
  65. }
  66. fun assemble_sib 3 {
  67. $scale
  68. $index
  69. $base
  70. @scale 2 param = ;
  71. @index 1 param = ;
  72. @base 0 param = ;
  73. scale 6 << index 3 << + base + ret ;
  74. }
  75. # Least significant nibble: number of bytes (1 or 2)
  76. # Second significant nibble: requires a disp32
  77. # Second significant byte: first byte
  78. # Third significant byte: maybe second byte
  79. fun op_to_modrm 2 {
  80. $op
  81. $reg
  82. @op 1 param = ;
  83. @reg 0 param = ;
  84. op OPERAND_TYPE take 2 != "op_to_modrm: cannot call on immediate" assert_msg ;
  85. if op OPERAND_TYPE take 1 == {
  86. $modrm
  87. @modrm 3 reg op OPERAND_REG take assemble_modrm = ;
  88. modrm 8 << 1 + ret ;
  89. } else {
  90. if op OPERAND_INDEX_REG take 8 == {
  91. if op OPERAND_REG take 8 == {
  92. $modrm
  93. @modrm 0 reg 5 assemble_modrm = ;
  94. modrm 8 << 1 + ret ;
  95. } else {
  96. $modrm
  97. @modrm 2 reg op OPERAND_REG take assemble_modrm = ;
  98. # Special case for ESP
  99. if op OPERAND_REG take 4 == {
  100. $sib
  101. @sib 0x24 = ;
  102. sib 16 << modrm 8 << + 2 + ret ;
  103. } else {
  104. modrm 8 << 1 + ret ;
  105. }
  106. }
  107. } else {
  108. # ESP cannot be used for indexing
  109. op OPERAND_INDEX_REG take 4 != "op_to_modrm: unsupported ESP in index" assert_msg ;
  110. if op OPERAND_REG take 8 == {
  111. $modrm
  112. $sib
  113. @modrm 0 reg 4 assemble_modrm = ;
  114. @sib op OPERAND_SCALE take op OPERAND_INDEX_REG take 5 assemble_sib = ;
  115. sib 16 << modrm 8 << + 2 + ret ;
  116. } else {
  117. $modrm
  118. $sib
  119. @modrm 2 reg 4 assemble_modrm = ;
  120. @sib op OPERAND_SCALE take op OPERAND_INDEX_REG take op OPERAND_REG take assemble_sib = ;
  121. sib 16 << modrm 8 << + 2 + ret ;
  122. }
  123. }
  124. }
  125. }
  126. fun op_to_reg 1 {
  127. $op
  128. @op 0 param = ;
  129. op OPERAND_TYPE take 1 == "op_to_reg: must call on register" assert_msg ;
  130. op OPERAND_REG take ret ;
  131. }
  132. fun opcode_to_reg 1 {
  133. $opcode
  134. @opcode 0 param = ;
  135. opcode 24 >> ret ;
  136. }
  137. fun bsf_like_handler 3 {
  138. $ctx
  139. $opcode
  140. $ops
  141. @ctx 2 param = ;
  142. @opcode 1 param = ;
  143. @ops 0 param = ;
  144. # Unpack operands
  145. $op1
  146. $op2
  147. ops vector_size 2 == "bsf_like_handler: error 1" assert_msg ;
  148. @op1 ops 0 vector_at = ;
  149. @op2 ops 1 vector_at = ;
  150. # Determine the operation size
  151. $size
  152. if op1 OPERAND_SIZE take 0 != {
  153. @size op1 OPERAND_SIZE take = ;
  154. if op2 OPERAND_SIZE take 0 != {
  155. size op2 OPERAND_SIZE take == "bsf_like_handler: incompatible operand size" assert_msg ;
  156. }
  157. } else {
  158. @size op2 OPERAND_SIZE take = ;
  159. }
  160. size 0 != "bsf_like_handler: unspecified operand size" assert_msg ;
  161. if size 2 == {
  162. ctx 0x66 asmctx_emit ;
  163. @size 3 = ;
  164. }
  165. # Check operand types
  166. op1 OPERAND_TYPE take 1 == "bsf_like_handler: destination must be a register" assert_msg ;
  167. op2 OPERAND_TYPE take 2 != "bsf_like_handler: source cannot be an immediate" assert_msg ;
  168. $opbytes
  169. # r32, r/m32
  170. @opbytes opcode OPCODE_R32RM32 take = ;
  171. ctx opbytes emit_multibyte ;
  172. ctx op2 op1 op_to_reg op_to_modrm emit_multibyte ;
  173. if op2 OPERAND_TYPE take 0 == {
  174. ctx op2 OPERAND_OFFSET take asmctx_emit32 ;
  175. }
  176. }
  177. fun sal_like_handler 3 {
  178. $ctx
  179. $opcode
  180. $ops
  181. @ctx 2 param = ;
  182. @opcode 1 param = ;
  183. @ops 0 param = ;
  184. # Unpack operands
  185. $op1
  186. $op2
  187. ops vector_size 2 == "sal_like_handler: error 1" assert_msg ;
  188. @op1 ops 0 vector_at = ;
  189. @op2 ops 1 vector_at = ;
  190. # Determine the operation size
  191. $size
  192. @size op1 OPERAND_SIZE take = ;
  193. if opcode OPCODE_FORCE_32 take {
  194. if size 0 == {
  195. @size 3 = ;
  196. }
  197. size 3 == "sal_like_handler: operand must be 32 bits" assert_msg ;
  198. }
  199. # FIXME
  200. if size 0 == {
  201. @size 3 = ;
  202. }
  203. size 0 != "sal_like_handler: unspecified operand size" assert_msg ;
  204. if size 2 == {
  205. ctx 0x66 asmctx_emit ;
  206. @size 3 = ;
  207. }
  208. # Check that the destination is not an immediate
  209. op1 OPERAND_TYPE take 2 != "sal_like_handler: destination is immediate" assert_msg ;
  210. $with_cl
  211. if opcode OPCODE_ALLOW_CL take {
  212. if op2 OPERAND_TYPE take 2 == {
  213. @with_cl 0 = ;
  214. } else {
  215. op2 OPERAND_TYPE take 1 == "sal_like_handler: count must be immediate or register" assert_msg ;
  216. op2 OPERAND_SIZE take 1 == "sal_like_handler: count must be 8 bits" assert_msg ;
  217. op2 OPERAND_REG take 1 == "sal_like_handler: if count is a register, it must be CL" assert_msg ;
  218. @with_cl 1 = ;
  219. }
  220. } else {
  221. @with_cl 0 = ;
  222. op2 OPERAND_TYPE take 2 == "sal_like_handler: count must be immediate" assert_msg ;
  223. }
  224. $opbytes
  225. if with_cl {
  226. if size 1 == {
  227. # r/m8, cl
  228. @opbytes opcode OPCODE_RM8CL take = ;
  229. } else {
  230. # r/m32, cl
  231. @opbytes opcode OPCODE_RM32CL take = ;
  232. }
  233. } else {
  234. if size 1 == {
  235. # r/m8, imm8
  236. @opbytes opcode OPCODE_RM8IMM8 take = ;
  237. } else {
  238. # r/m32, imm8
  239. @opbytes opcode OPCODE_RM32IMM8 take = ;
  240. }
  241. }
  242. ctx opbytes emit_multibyte ;
  243. ctx op1 opbytes opcode_to_reg op_to_modrm emit_multibyte ;
  244. if op1 OPERAND_TYPE take 0 == {
  245. ctx op1 OPERAND_OFFSET take asmctx_emit32 ;
  246. }
  247. if with_cl ! {
  248. ctx op2 OPERAND_OFFSET take asmctx_emit ;
  249. }
  250. }
  251. fun lea_like_handler 3 {
  252. $ctx
  253. $opcode
  254. $ops
  255. @ctx 2 param = ;
  256. @opcode 1 param = ;
  257. @ops 0 param = ;
  258. # Unpack operands
  259. $op1
  260. $op2
  261. ops vector_size 2 == "lea_like_handler: error 1" assert_msg ;
  262. @op1 ops 0 vector_at = ;
  263. @op2 ops 1 vector_at = ;
  264. # Determine the operation size
  265. $size
  266. @size op1 OPERAND_SIZE take = ;
  267. size 0 != "lea_like_handler: unspecified operand size" assert_msg ;
  268. size 3 == "lea_like_handler: operand must be 32 bits" assert_msg ;
  269. # Check that the the source is an indirect and the destination is a register
  270. op1 OPERAND_TYPE take 1 == "sal_like_handler: destination must be register" assert_msg ;
  271. op2 OPERAND_TYPE take 0 == "sal_like_handler: source must be indirect" assert_msg ;
  272. $opbytes
  273. @opbytes opcode OPCODE_RM32M take = ;
  274. ctx opbytes emit_multibyte ;
  275. ctx op2 op1 op_to_reg op_to_modrm emit_multibyte ;
  276. ctx op2 OPERAND_OFFSET take asmctx_emit32 ;
  277. }
  278. fun stos_like_handler 3 {
  279. $ctx
  280. $opcode
  281. $ops
  282. @ctx 2 param = ;
  283. @opcode 1 param = ;
  284. @ops 0 param = ;
  285. # Unpack operands (if there are two, the second is ignored)
  286. $op
  287. ops vector_size 1 == ops vector_size 2 == || "stos_like_handler: error 1" assert_msg ;
  288. @op ops 0 vector_at = ;
  289. # Determine the operation size
  290. $size
  291. @size op OPERAND_SIZE take = ;
  292. if opcode OPCODE_FORCE_8 take {
  293. if size 0 == {
  294. @size 1 = ;
  295. }
  296. size 1 == "stos_like_handler: operand must be 8 bits" assert_msg ;
  297. }
  298. size 0 != "stos_like_handler: unspecified operand size" assert_msg ;
  299. $opbytes
  300. if size 1 == {
  301. # m8
  302. @opbytes opcode OPCODE_M8 take = ;
  303. } else {
  304. if size 2 == {
  305. # m16
  306. @opbytes opcode OPCODE_M16 take = ;
  307. } else {
  308. # m32
  309. @opbytes opcode OPCODE_M32 take = ;
  310. }
  311. }
  312. ctx opbytes emit_multibyte ;
  313. }
  314. fun movzx_like_handler 3 {
  315. $ctx
  316. $opcode
  317. $ops
  318. @ctx 2 param = ;
  319. @opcode 1 param = ;
  320. @ops 0 param = ;
  321. # Unpack operands
  322. $op1
  323. $op2
  324. ops vector_size 2 == "movzx_like_handler: error 1" assert_msg ;
  325. @op1 ops 0 vector_at = ;
  326. @op2 ops 1 vector_at = ;
  327. # Determine the operation size
  328. $size
  329. @size op1 OPERAND_SIZE take = ;
  330. size 0 != "movzx_like_handler: unspecified destination size" assert_msg ;
  331. size 3 == size 2 == || "movzx_like_handler: destination must be 16 or 32 bits" assert_msg ;
  332. $src_size
  333. @src_size op2 OPERAND_SIZE take = ;
  334. # FIXME
  335. if src_size 0 == {
  336. @src_size 1 = ;
  337. }
  338. src_size 0 != "movzx_like_handler: unspecified source size" assert_msg ;
  339. src_size 1 == src_size 2 == || "movzx_like_handler: source must be 8 or 16 bits" assert_msg ;
  340. src_size 2 == size 2 == && ! "movzx_like_handler: the two operands cannot be 16 bits at the same time" assert_msg ;
  341. if size 2 == {
  342. ctx 0x66 asmctx_emit ;
  343. }
  344. # Check that the the source is not an immediate and the destination is a register
  345. op1 OPERAND_TYPE take 1 == "sal_like_handler: destination is immediate" assert_msg ;
  346. op2 OPERAND_TYPE take 2 != "sal_like_handler: source must be immediate" assert_msg ;
  347. $opbytes
  348. if src_size 1 == {
  349. # r32, r/m8
  350. @opbytes opcode OPCODE_R32RM8 take = ;
  351. } else {
  352. # r32, r/m16
  353. @opbytes opcode OPCODE_R32RM16 take = ;
  354. }
  355. ctx opbytes emit_multibyte ;
  356. ctx op2 op1 op_to_reg op_to_modrm emit_multibyte ;
  357. if op2 OPERAND_TYPE take 0 == {
  358. ctx op2 OPERAND_OFFSET take asmctx_emit32 ;
  359. }
  360. }
  361. fun add_like_handler 3 {
  362. $ctx
  363. $opcode
  364. $ops
  365. @ctx 2 param = ;
  366. @opcode 1 param = ;
  367. @ops 0 param = ;
  368. # Unpack operands
  369. $op1
  370. $op2
  371. ops vector_size 2 == "add_like_handler: error 1" assert_msg ;
  372. @op1 ops 0 vector_at = ;
  373. @op2 ops 1 vector_at = ;
  374. # Determine the operation size
  375. $size
  376. if op1 OPERAND_SIZE take 0 != {
  377. @size op1 OPERAND_SIZE take = ;
  378. if op2 OPERAND_SIZE take 0 != {
  379. size op2 OPERAND_SIZE take == "add_like_handler: incompatible operand size" assert_msg ;
  380. }
  381. } else {
  382. @size op2 OPERAND_SIZE take = ;
  383. }
  384. if size 0 == opcode OPCODE_DEFAULT_32 take && {
  385. @size 3 = ;
  386. }
  387. size 0 != "add_like_handler: unspecified operand size" assert_msg ;
  388. $actual_size
  389. @actual_size size = ;
  390. if size 2 == {
  391. ctx 0x66 asmctx_emit ;
  392. @size 3 = ;
  393. }
  394. # Check that the destination and possibly the source is not an immediate
  395. op1 OPERAND_TYPE take 2 != "add_like_handler: destination is immediate" assert_msg ;
  396. if opcode OPCODE_ALLOW_IMM take ! {
  397. op2 OPERAND_TYPE take 2 != "add_like_handler: source is immediate" assert_msg ;
  398. }
  399. if op2 OPERAND_TYPE take 2 == {
  400. $opbytes
  401. if size 1 == {
  402. # r/m8, imm8
  403. @opbytes opcode OPCODE_RM8IMM8 take = ;
  404. } else {
  405. # r/m32, imm32
  406. @opbytes opcode OPCODE_RM32IMM32 take = ;
  407. }
  408. ctx opbytes emit_multibyte ;
  409. ctx op1 opbytes opcode_to_reg op_to_modrm emit_multibyte ;
  410. if op1 OPERAND_TYPE take 0 == {
  411. ctx op1 OPERAND_OFFSET take asmctx_emit32 ;
  412. }
  413. ctx op2 OPERAND_OFFSET take actual_size emit_size ;
  414. ret ;
  415. }
  416. if op2 OPERAND_TYPE take 1 == {
  417. $opbytes
  418. if size 1 == {
  419. # r/m8, r8
  420. @opbytes opcode OPCODE_RM8R8 take = ;
  421. } else {
  422. # r/m32, r32
  423. @opbytes opcode OPCODE_RM32R32 take = ;
  424. }
  425. ctx opbytes emit_multibyte ;
  426. ctx op1 op2 op_to_reg op_to_modrm emit_multibyte ;
  427. if op1 OPERAND_TYPE take 0 == {
  428. ctx op1 OPERAND_OFFSET take asmctx_emit32 ;
  429. }
  430. ret ;
  431. }
  432. if op2 OPERAND_TYPE take 0 == {
  433. $opbytes
  434. if size 1 == {
  435. # r8, r/m 8
  436. @opbytes opcode OPCODE_R8RM8 take = ;
  437. } else {
  438. # r32, r/m32
  439. @opbytes opcode OPCODE_R32RM32 take = ;
  440. }
  441. ctx opbytes emit_multibyte ;
  442. ctx op2 op1 op_to_reg op_to_modrm emit_multibyte ;
  443. if op2 OPERAND_TYPE take 0 == {
  444. ctx op2 OPERAND_OFFSET take asmctx_emit32 ;
  445. }
  446. ret ;
  447. }
  448. 0 "add_like_handler: error 1" assert_msg ;
  449. }
  450. fun jmp_like_handler 3 {
  451. $ctx
  452. $opcode
  453. $ops
  454. @ctx 2 param = ;
  455. @opcode 1 param = ;
  456. @ops 0 param = ;
  457. # Unpack the operand
  458. $op
  459. ops vector_size 1 == "jmp_like_handler: error 1" assert_msg ;
  460. @op ops 0 vector_at = ;
  461. # Determine the operation size
  462. $size
  463. @size op OPERAND_SIZE take = ;
  464. if opcode OPCODE_FORCE_32 take {
  465. if size 0 == {
  466. @size 3 = ;
  467. }
  468. size 3 == "jmp_like_handler: operand must be 32 bits" assert_msg ;
  469. }
  470. if opcode OPCODE_FORCE_8 take {
  471. if size 0 == {
  472. @size 1 = ;
  473. }
  474. size 1 == "jmp_like_handler: operand must be 8 bits" assert_msg ;
  475. }
  476. # FIXME
  477. if size 0 == {
  478. @size 3 = ;
  479. }
  480. size 0 != "jmp_like_handler: unspecified operand size" assert_msg ;
  481. $actual_size
  482. @actual_size size = ;
  483. if size 2 == {
  484. ctx 0x66 asmctx_emit ;
  485. @size 3 = ;
  486. }
  487. if opcode OPCODE_ALLOW_IMM take ! {
  488. op OPERAND_TYPE take 2 != "jmp_like_handler: operand cannot be immediate" assert_msg ;
  489. }
  490. if opcode OPCODE_ALLOW_RM take ! {
  491. op OPERAND_TYPE take 2 == "jmp_like_handler: oprand must be immediate" assert_msg ;
  492. }
  493. if op OPERAND_TYPE take 2 == {
  494. $opbytes
  495. if size 1 == {
  496. # imm8
  497. @opbytes opcode OPCODE_IMM8 take = ;
  498. } else {
  499. # imm32
  500. @opbytes opcode OPCODE_IMM32 take = ;
  501. }
  502. ctx opbytes emit_multibyte ;
  503. $off
  504. @off op OPERAND_OFFSET take = ;
  505. if opcode OPCODE_RELATIVE take {
  506. $current_loc
  507. @current_loc ctx ASMCTX_CURRENT_LOC take = ;
  508. if size 1 == {
  509. @off off current_loc - 1 - = ;
  510. if ctx ASMCTX_STAGE take 2 == {
  511. $high
  512. @high off 0xffffff80 & = ;
  513. high 0 == high 0xffffff80 == || "jmp_like_handler: relative jump too big" assert_msg ;
  514. }
  515. } else {
  516. @off off current_loc - 4 - = ;
  517. }
  518. }
  519. ctx off actual_size emit_size ;
  520. } else {
  521. $opbytes
  522. if size 1 == {
  523. # r/m8
  524. @opbytes opcode OPCODE_RM8 take = ;
  525. } else {
  526. # r/m32
  527. @opbytes opcode OPCODE_RM32 take = ;
  528. }
  529. ctx opbytes emit_multibyte ;
  530. ctx op opbytes opcode_to_reg op_to_modrm emit_multibyte ;
  531. if op OPERAND_TYPE take 0 == {
  532. ctx op OPERAND_OFFSET take asmctx_emit32 ;
  533. }
  534. }
  535. }
  536. fun shld_like_handler 3 {
  537. $ctx
  538. $opcode
  539. $ops
  540. @ctx 2 param = ;
  541. @opcode 1 param = ;
  542. @ops 0 param = ;
  543. # Unpack operands
  544. $op1
  545. $op2
  546. $op3
  547. ops vector_size 3 == "shld_like_handler: error 1" assert_msg ;
  548. @op1 ops 0 vector_at = ;
  549. @op2 ops 1 vector_at = ;
  550. @op3 ops 2 vector_at = ;
  551. # Check operands types and sizes
  552. op1 OPERAND_TYPE take 2 != "shld_like_handler: destination cannot be an immediate" assert_msg ;
  553. op1 OPERAND_SIZE take 3 == op1 OPERAND_SIZE take 0 == || "shld_like_handler: destination must be 32 bits" assert_msg ;
  554. op2 OPERAND_TYPE take 1 == "shld_like_handler: source must be a register" assert_msg ;
  555. op2 OPERAND_SIZE take 3 == op2 OPERAND_SIZE take 0 == || "shld_like_handler: source must be 32 bits" assert_msg ;
  556. op3 OPERAND_SIZE take 1 == op3 OPERAND_SIZE take 0 == || "shld_like_handler: count must be 8 bits" assert_msg ;
  557. # Check which variant we are using
  558. $with_cl
  559. if op3 OPERAND_TYPE take 2 == {
  560. @with_cl 0 = ;
  561. } else {
  562. op3 OPERAND_TYPE take 1 == "shld_like_handler: count must be immediate or register" assert_msg ;
  563. op3 OPERAND_REG take 1 == "shld_like_handler: if count is a register, it must be CL" assert_msg ;
  564. @with_cl 1 = ;
  565. }
  566. $opbytes
  567. if with_cl {
  568. @opbytes opcode OPCODE_RM32R32CL take = ;
  569. } else {
  570. @opbytes opcode OPCODE_RM32R32IMM8 take = ;
  571. }
  572. ctx opbytes emit_multibyte ;
  573. ctx op1 op2 op_to_reg op_to_modrm emit_multibyte ;
  574. if op1 OPERAND_TYPE take 0 == {
  575. ctx op1 OPERAND_OFFSET take asmctx_emit32 ;
  576. }
  577. if with_cl ! {
  578. ctx op3 OPERAND_OFFSET take asmctx_emit ;
  579. }
  580. }
  581. fun imul_like_handler 3 {
  582. $ctx
  583. $opcode
  584. $ops
  585. @ctx 2 param = ;
  586. @opcode 1 param = ;
  587. @ops 0 param = ;
  588. # Check that the size is acceptable
  589. ops vector_size 1 >= ops vector_size 3 <= && "imul_like_handler: illegal number of operands" assert_msg ;
  590. if ops vector_size 1 == {
  591. # Unpack the operand
  592. $op
  593. @op ops 0 vector_at = ;
  594. # Determine the operation size
  595. $size
  596. @size op OPERAND_SIZE take = ;
  597. # FIXME
  598. if size 0 == {
  599. @size 3 = ;
  600. }
  601. size 0 != "imul_like_handler: unspecified operand size" assert_msg ;
  602. size 1 == size 3 == || "imul_like_handler: 16 bits not supported" assert_msg ;
  603. op OPERAND_TYPE take 2 != "imul_like_handler: operand cannot be immediate" assert_msg ;
  604. $opbytes
  605. if size 1 == {
  606. # r/m8
  607. @opbytes opcode OPCODE_RM8 take = ;
  608. } else {
  609. # r/m32
  610. @opbytes opcode OPCODE_RM32 take = ;
  611. }
  612. ctx opbytes emit_multibyte ;
  613. ctx op opbytes opcode_to_reg op_to_modrm emit_multibyte ;
  614. if op OPERAND_TYPE take 0 == {
  615. ctx op OPERAND_OFFSET take asmctx_emit32 ;
  616. }
  617. } else {
  618. # Unpack the operands
  619. $op1
  620. $op2
  621. $op3
  622. @op1 ops 0 vector_at = ;
  623. @op2 ops 1 vector_at = ;
  624. $three_ops
  625. @three_ops 0 = ;
  626. # If there are two operands, but the second is an immediate, then the first must be repeated twice
  627. if ops vector_size 2 == op2 OPERAND_TYPE take 2 == && {
  628. @op3 op2 = ;
  629. @op2 op1 = ;
  630. @three_ops 1 = ;
  631. } else {
  632. if ops vector_size 3 == {
  633. @op3 ops 2 vector_at = ;
  634. @three_ops 1 = ;
  635. }
  636. }
  637. # Some checks
  638. op1 OPERAND_TYPE take 1 == "imul_like_handler: destination must be a register" assert_msg ;
  639. op1 OPERAND_SIZE take 3 == op1 OPERAND_SIZE take 0 == || "imul_like_handler: destination must be 32 bits" assert_msg ;
  640. op2 OPERAND_TYPE take 2 != "imul_like_handler: first souce cannot be an immediate" assert_msg ;
  641. op2 OPERAND_SIZE take 3 == op2 OPERAND_SIZE take 0 == || "imul_like_handler: first source must be 32 bits" assert_msg ;
  642. if three_ops ! {
  643. $opbytes
  644. # r32, r/m32
  645. @opbytes opcode OPCODE_R32RM32 take = ;
  646. ctx opbytes emit_multibyte ;
  647. ctx op2 op1 op_to_reg op_to_modrm emit_multibyte ;
  648. if op2 OPERAND_TYPE take 0 == {
  649. ctx op2 OPERAND_OFFSET take asmctx_emit32 ;
  650. }
  651. } else {
  652. # Missing checks
  653. op3 OPERAND_TYPE take 2 == "imul_like_handler: second source must be an immediate" assert_msg ;
  654. op3 OPERAND_SIZE take 3 == op3 OPERAND_SIZE take 0 == || "imul_like_handler: second source must be 32 bits" assert_msg ;
  655. $opbytes
  656. # r32, r/m32
  657. @opbytes opcode OPCODE_R32RM32IMM32 take = ;
  658. ctx opbytes emit_multibyte ;
  659. ctx op2 op1 op_to_reg op_to_modrm emit_multibyte ;
  660. if op2 OPERAND_TYPE take 0 == {
  661. ctx op2 OPERAND_OFFSET take asmctx_emit32 ;
  662. }
  663. ctx op3 OPERAND_OFFSET take asmctx_emit32 ;
  664. }
  665. }
  666. }
  667. fun ret_like_handler 3 {
  668. $ctx
  669. $opcode
  670. $ops
  671. @ctx 2 param = ;
  672. @opcode 1 param = ;
  673. @ops 0 param = ;
  674. # Check there are no operands
  675. ops vector_size 0 == "jmp_like_handler: error 1" assert_msg ;
  676. # Just emit the opcode
  677. ctx opcode OPCODE_NO_OPERAND take emit_multibyte ;
  678. }
  679. fun _destroy_opcode_map_closure 3 {
  680. $ctx
  681. $key
  682. $value
  683. @ctx 2 param = ;
  684. @key 1 param = ;
  685. @value 0 param = ;
  686. value free ;
  687. }
  688. fun destroy_opcode_map 1 {
  689. $opcode_map
  690. @opcode_map 0 param = ;
  691. opcode_map @_destroy_opcode_map_closure 0 map_foreach ;
  692. opcode_map map_destroy ;
  693. }
  694. fun build_opcode_map 0 {
  695. $opcode_map
  696. @opcode_map map_init = ;
  697. $opcode
  698. $name
  699. @name "add" = ;
  700. @opcode SIZEOF_OPCODE malloc = ;
  701. opcode OPCODE_ARG_NUM take_addr 2 = ;
  702. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  703. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  704. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  705. opcode OPCODE_RM8IMM8 take_addr 0x00008001 = ;
  706. opcode OPCODE_RM32IMM32 take_addr 0x00008101 = ;
  707. opcode OPCODE_RM8R8 take_addr 0x00000001 = ;
  708. opcode OPCODE_RM32R32 take_addr 0x00000101 = ;
  709. opcode OPCODE_R8RM8 take_addr 0x00000201 = ;
  710. opcode OPCODE_R32RM32 take_addr 0x00000301 = ;
  711. opcode_map name opcode map_set ;
  712. @name "sub" = ;
  713. @opcode SIZEOF_OPCODE malloc = ;
  714. opcode OPCODE_ARG_NUM take_addr 2 = ;
  715. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  716. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  717. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  718. opcode OPCODE_RM8IMM8 take_addr 0x05008001 = ;
  719. opcode OPCODE_RM32IMM32 take_addr 0x05008101 = ;
  720. opcode OPCODE_RM8R8 take_addr 0x00002801 = ;
  721. opcode OPCODE_RM32R32 take_addr 0x00002901 = ;
  722. opcode OPCODE_R8RM8 take_addr 0x00002a01 = ;
  723. opcode OPCODE_R32RM32 take_addr 0x00002b01 = ;
  724. opcode_map name opcode map_set ;
  725. @name "adc" = ;
  726. @opcode SIZEOF_OPCODE malloc = ;
  727. opcode OPCODE_ARG_NUM take_addr 2 = ;
  728. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  729. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  730. opcode OPCODE_DEFAULT_32 take_addr 0 = ;
  731. opcode OPCODE_RM8IMM8 take_addr 0x02008001 = ;
  732. opcode OPCODE_RM32IMM32 take_addr 0x02008101 = ;
  733. opcode OPCODE_RM8R8 take_addr 0x00001001 = ;
  734. opcode OPCODE_RM32R32 take_addr 0x00001101 = ;
  735. opcode OPCODE_R8RM8 take_addr 0x00001201 = ;
  736. opcode OPCODE_R32RM32 take_addr 0x00001301 = ;
  737. opcode_map name opcode map_set ;
  738. @name "sbb" = ;
  739. @opcode SIZEOF_OPCODE malloc = ;
  740. opcode OPCODE_ARG_NUM take_addr 2 = ;
  741. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  742. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  743. opcode OPCODE_DEFAULT_32 take_addr 0 = ;
  744. opcode OPCODE_RM8IMM8 take_addr 0x03008001 = ;
  745. opcode OPCODE_RM32IMM32 take_addr 0x03008101 = ;
  746. opcode OPCODE_RM8R8 take_addr 0x00001801 = ;
  747. opcode OPCODE_RM32R32 take_addr 0x00001901 = ;
  748. opcode OPCODE_R8RM8 take_addr 0x00001a01 = ;
  749. opcode OPCODE_R32RM32 take_addr 0x00001b01 = ;
  750. opcode_map name opcode map_set ;
  751. @name "mov" = ;
  752. @opcode SIZEOF_OPCODE malloc = ;
  753. opcode OPCODE_ARG_NUM take_addr 2 = ;
  754. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  755. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  756. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  757. opcode OPCODE_RM8IMM8 take_addr 0x0000c601 = ;
  758. opcode OPCODE_RM32IMM32 take_addr 0x0000c701 = ;
  759. opcode OPCODE_RM8R8 take_addr 0x00008801 = ;
  760. opcode OPCODE_RM32R32 take_addr 0x00008901 = ;
  761. opcode OPCODE_R8RM8 take_addr 0x00008a01 = ;
  762. opcode OPCODE_R32RM32 take_addr 0x00008b01 = ;
  763. opcode_map name opcode map_set ;
  764. @name "cmp" = ;
  765. @opcode SIZEOF_OPCODE malloc = ;
  766. opcode OPCODE_ARG_NUM take_addr 2 = ;
  767. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  768. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  769. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  770. opcode OPCODE_RM8IMM8 take_addr 0x07008001 = ;
  771. opcode OPCODE_RM32IMM32 take_addr 0x07008101 = ;
  772. opcode OPCODE_RM8R8 take_addr 0x00003801 = ;
  773. opcode OPCODE_RM32R32 take_addr 0x00003901 = ;
  774. opcode OPCODE_R8RM8 take_addr 0x00003a01 = ;
  775. opcode OPCODE_R32RM32 take_addr 0x00003b01 = ;
  776. opcode_map name opcode map_set ;
  777. @name "and" = ;
  778. @opcode SIZEOF_OPCODE malloc = ;
  779. opcode OPCODE_ARG_NUM take_addr 2 = ;
  780. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  781. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  782. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  783. opcode OPCODE_RM8IMM8 take_addr 0x04008001 = ;
  784. opcode OPCODE_RM32IMM32 take_addr 0x04008101 = ;
  785. opcode OPCODE_RM8R8 take_addr 0x00002001 = ;
  786. opcode OPCODE_RM32R32 take_addr 0x00002101 = ;
  787. opcode OPCODE_R8RM8 take_addr 0x00002201 = ;
  788. opcode OPCODE_R32RM32 take_addr 0x00002301 = ;
  789. opcode_map name opcode map_set ;
  790. @name "or" = ;
  791. @opcode SIZEOF_OPCODE malloc = ;
  792. opcode OPCODE_ARG_NUM take_addr 2 = ;
  793. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  794. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  795. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  796. opcode OPCODE_RM8IMM8 take_addr 0x01008001 = ;
  797. opcode OPCODE_RM32IMM32 take_addr 0x01008101 = ;
  798. opcode OPCODE_RM8R8 take_addr 0x00000801 = ;
  799. opcode OPCODE_RM32R32 take_addr 0x00000901 = ;
  800. opcode OPCODE_R8RM8 take_addr 0x00000a01 = ;
  801. opcode OPCODE_R32RM32 take_addr 0x00000b01 = ;
  802. opcode_map name opcode map_set ;
  803. @name "xor" = ;
  804. @opcode SIZEOF_OPCODE malloc = ;
  805. opcode OPCODE_ARG_NUM take_addr 2 = ;
  806. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  807. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  808. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  809. opcode OPCODE_RM8IMM8 take_addr 0x06008001 = ;
  810. opcode OPCODE_RM32IMM32 take_addr 0x06008101 = ;
  811. opcode OPCODE_RM8R8 take_addr 0x00003001 = ;
  812. opcode OPCODE_RM32R32 take_addr 0x00003101 = ;
  813. opcode OPCODE_R8RM8 take_addr 0x00003201 = ;
  814. opcode OPCODE_R32RM32 take_addr 0x00003301 = ;
  815. opcode_map name opcode map_set ;
  816. @name "test" = ;
  817. @opcode SIZEOF_OPCODE malloc = ;
  818. opcode OPCODE_ARG_NUM take_addr 2 = ;
  819. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  820. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  821. opcode OPCODE_DEFAULT_32 take_addr 1 = ;
  822. opcode OPCODE_RM8IMM8 take_addr 0x0000f601 = ;
  823. opcode OPCODE_RM32IMM32 take_addr 0x0000f701 = ;
  824. opcode OPCODE_RM8R8 take_addr 0x00008401 = ;
  825. opcode OPCODE_RM32R32 take_addr 0x00008501 = ;
  826. opcode OPCODE_R8RM8 take_addr 0x00008401 = ;
  827. opcode OPCODE_R32RM32 take_addr 0x00008501 = ;
  828. opcode_map name opcode map_set ;
  829. @name "xchg" = ;
  830. @opcode SIZEOF_OPCODE malloc = ;
  831. opcode OPCODE_ARG_NUM take_addr 2 = ;
  832. opcode OPCODE_HANDLER take_addr @add_like_handler = ;
  833. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  834. opcode OPCODE_DEFAULT_32 take_addr 0 = ;
  835. opcode OPCODE_RM8R8 take_addr 0x00008601 = ;
  836. opcode OPCODE_RM32R32 take_addr 0x00008701 = ;
  837. opcode OPCODE_R8RM8 take_addr 0x00008601 = ;
  838. opcode OPCODE_R32RM32 take_addr 0x00008701 = ;
  839. opcode_map name opcode map_set ;
  840. @name "lea" = ;
  841. @opcode SIZEOF_OPCODE malloc = ;
  842. opcode OPCODE_ARG_NUM take_addr 2 = ;
  843. opcode OPCODE_HANDLER take_addr @lea_like_handler = ;
  844. opcode OPCODE_RM32M take_addr 0x00008d01 = ;
  845. opcode_map name opcode map_set ;
  846. @name "jmp" = ;
  847. @opcode SIZEOF_OPCODE malloc = ;
  848. opcode OPCODE_ARG_NUM take_addr 1 = ;
  849. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  850. opcode OPCODE_RM32 take_addr 0x0400ff01 = ;
  851. opcode OPCODE_IMM32 take_addr 0x0000e901 = ;
  852. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  853. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  854. opcode OPCODE_RELATIVE take_addr 1 = ;
  855. opcode OPCODE_FORCE_8 take_addr 0 = ;
  856. opcode OPCODE_FORCE_32 take_addr 1 = ;
  857. opcode_map name opcode map_set ;
  858. @name "call" = ;
  859. @opcode SIZEOF_OPCODE malloc = ;
  860. opcode OPCODE_ARG_NUM take_addr 1 = ;
  861. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  862. opcode OPCODE_RM32 take_addr 0x0200ff01 = ;
  863. opcode OPCODE_IMM32 take_addr 0x0000e801 = ;
  864. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  865. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  866. opcode OPCODE_RELATIVE take_addr 1 = ;
  867. opcode OPCODE_FORCE_8 take_addr 0 = ;
  868. opcode OPCODE_FORCE_32 take_addr 1 = ;
  869. opcode_map name opcode map_set ;
  870. @name "jcxz" = ;
  871. @opcode SIZEOF_OPCODE malloc = ;
  872. opcode OPCODE_ARG_NUM take_addr 1 = ;
  873. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  874. opcode OPCODE_IMM8 take_addr 0x00e36702 = ;
  875. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  876. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  877. opcode OPCODE_RELATIVE take_addr 1 = ;
  878. opcode OPCODE_FORCE_8 take_addr 1 = ;
  879. opcode OPCODE_FORCE_32 take_addr 0 = ;
  880. opcode_map name opcode map_set ;
  881. @name "jecxz" = ;
  882. @opcode SIZEOF_OPCODE malloc = ;
  883. opcode OPCODE_ARG_NUM take_addr 1 = ;
  884. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  885. opcode OPCODE_IMM8 take_addr 0x0000e301 = ;
  886. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  887. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  888. opcode OPCODE_RELATIVE take_addr 1 = ;
  889. opcode OPCODE_FORCE_8 take_addr 1 = ;
  890. opcode OPCODE_FORCE_32 take_addr 0 = ;
  891. opcode_map name opcode map_set ;
  892. @name "loop" = ;
  893. @opcode SIZEOF_OPCODE malloc = ;
  894. opcode OPCODE_ARG_NUM take_addr 1 = ;
  895. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  896. opcode OPCODE_IMM8 take_addr 0x0000e201 = ;
  897. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  898. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  899. opcode OPCODE_RELATIVE take_addr 1 = ;
  900. opcode OPCODE_FORCE_8 take_addr 1 = ;
  901. opcode OPCODE_FORCE_32 take_addr 0 = ;
  902. opcode_map name opcode map_set ;
  903. @name "loope" = ;
  904. @opcode SIZEOF_OPCODE malloc = ;
  905. opcode OPCODE_ARG_NUM take_addr 1 = ;
  906. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  907. opcode OPCODE_IMM8 take_addr 0x0000e101 = ;
  908. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  909. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  910. opcode OPCODE_RELATIVE take_addr 1 = ;
  911. opcode OPCODE_FORCE_8 take_addr 1 = ;
  912. opcode OPCODE_FORCE_32 take_addr 0 = ;
  913. opcode_map name opcode map_set ;
  914. @name "loopne" = ;
  915. @opcode SIZEOF_OPCODE malloc = ;
  916. opcode OPCODE_ARG_NUM take_addr 1 = ;
  917. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  918. opcode OPCODE_IMM8 take_addr 0x0000e001 = ;
  919. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  920. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  921. opcode OPCODE_RELATIVE take_addr 1 = ;
  922. opcode OPCODE_FORCE_8 take_addr 1 = ;
  923. opcode OPCODE_FORCE_32 take_addr 0 = ;
  924. opcode_map name opcode map_set ;
  925. @name "loopnz" = ;
  926. @opcode SIZEOF_OPCODE malloc = ;
  927. opcode OPCODE_ARG_NUM take_addr 1 = ;
  928. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  929. opcode OPCODE_IMM8 take_addr 0x0000e001 = ;
  930. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  931. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  932. opcode OPCODE_RELATIVE take_addr 1 = ;
  933. opcode OPCODE_FORCE_8 take_addr 1 = ;
  934. opcode OPCODE_FORCE_32 take_addr 0 = ;
  935. opcode_map name opcode map_set ;
  936. @name "loopnzd" = ;
  937. @opcode SIZEOF_OPCODE malloc = ;
  938. opcode OPCODE_ARG_NUM take_addr 1 = ;
  939. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  940. opcode OPCODE_IMM8 take_addr 0x0000e001 = ;
  941. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  942. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  943. opcode OPCODE_RELATIVE take_addr 1 = ;
  944. opcode OPCODE_FORCE_8 take_addr 1 = ;
  945. opcode OPCODE_FORCE_32 take_addr 0 = ;
  946. opcode_map name opcode map_set ;
  947. @name "ja" = ;
  948. @opcode SIZEOF_OPCODE malloc = ;
  949. opcode OPCODE_ARG_NUM take_addr 1 = ;
  950. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  951. opcode OPCODE_IMM32 take_addr 0x00870f02 = ;
  952. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  953. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  954. opcode OPCODE_RELATIVE take_addr 1 = ;
  955. opcode OPCODE_FORCE_8 take_addr 0 = ;
  956. opcode OPCODE_FORCE_32 take_addr 1 = ;
  957. opcode_map name opcode map_set ;
  958. @name "jae" = ;
  959. @opcode SIZEOF_OPCODE malloc = ;
  960. opcode OPCODE_ARG_NUM take_addr 1 = ;
  961. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  962. opcode OPCODE_IMM32 take_addr 0x00830f02 = ;
  963. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  964. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  965. opcode OPCODE_RELATIVE take_addr 1 = ;
  966. opcode OPCODE_FORCE_8 take_addr 0 = ;
  967. opcode OPCODE_FORCE_32 take_addr 1 = ;
  968. opcode_map name opcode map_set ;
  969. @name "jb" = ;
  970. @opcode SIZEOF_OPCODE malloc = ;
  971. opcode OPCODE_ARG_NUM take_addr 1 = ;
  972. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  973. opcode OPCODE_IMM32 take_addr 0x00820f02 = ;
  974. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  975. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  976. opcode OPCODE_RELATIVE take_addr 1 = ;
  977. opcode OPCODE_FORCE_8 take_addr 0 = ;
  978. opcode OPCODE_FORCE_32 take_addr 1 = ;
  979. opcode_map name opcode map_set ;
  980. @name "jbe" = ;
  981. @opcode SIZEOF_OPCODE malloc = ;
  982. opcode OPCODE_ARG_NUM take_addr 1 = ;
  983. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  984. opcode OPCODE_IMM32 take_addr 0x00860f02 = ;
  985. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  986. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  987. opcode OPCODE_RELATIVE take_addr 1 = ;
  988. opcode OPCODE_FORCE_8 take_addr 0 = ;
  989. opcode OPCODE_FORCE_32 take_addr 1 = ;
  990. opcode_map name opcode map_set ;
  991. @name "jc" = ;
  992. @opcode SIZEOF_OPCODE malloc = ;
  993. opcode OPCODE_ARG_NUM take_addr 1 = ;
  994. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  995. opcode OPCODE_IMM32 take_addr 0x00820f02 = ;
  996. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  997. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  998. opcode OPCODE_RELATIVE take_addr 1 = ;
  999. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1000. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1001. opcode_map name opcode map_set ;
  1002. @name "je" = ;
  1003. @opcode SIZEOF_OPCODE malloc = ;
  1004. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1005. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1006. opcode OPCODE_IMM32 take_addr 0x00840f02 = ;
  1007. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1008. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1009. opcode OPCODE_RELATIVE take_addr 1 = ;
  1010. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1011. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1012. opcode_map name opcode map_set ;
  1013. @name "jz" = ;
  1014. @opcode SIZEOF_OPCODE malloc = ;
  1015. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1016. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1017. opcode OPCODE_IMM32 take_addr 0x00840f02 = ;
  1018. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1019. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1020. opcode OPCODE_RELATIVE take_addr 1 = ;
  1021. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1022. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1023. opcode_map name opcode map_set ;
  1024. @name "jg" = ;
  1025. @opcode SIZEOF_OPCODE malloc = ;
  1026. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1027. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1028. opcode OPCODE_IMM32 take_addr 0x008f0f02 = ;
  1029. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1030. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1031. opcode OPCODE_RELATIVE take_addr 1 = ;
  1032. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1033. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1034. opcode_map name opcode map_set ;
  1035. @name "jge" = ;
  1036. @opcode SIZEOF_OPCODE malloc = ;
  1037. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1038. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1039. opcode OPCODE_IMM32 take_addr 0x008d0f02 = ;
  1040. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1041. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1042. opcode OPCODE_RELATIVE take_addr 1 = ;
  1043. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1044. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1045. opcode_map name opcode map_set ;
  1046. @name "jl" = ;
  1047. @opcode SIZEOF_OPCODE malloc = ;
  1048. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1049. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1050. opcode OPCODE_IMM32 take_addr 0x008c0f02 = ;
  1051. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1052. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1053. opcode OPCODE_RELATIVE take_addr 1 = ;
  1054. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1055. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1056. opcode_map name opcode map_set ;
  1057. @name "jle" = ;
  1058. @opcode SIZEOF_OPCODE malloc = ;
  1059. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1060. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1061. opcode OPCODE_IMM32 take_addr 0x008e0f02 = ;
  1062. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1063. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1064. opcode OPCODE_RELATIVE take_addr 1 = ;
  1065. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1066. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1067. opcode_map name opcode map_set ;
  1068. @name "jna" = ;
  1069. @opcode SIZEOF_OPCODE malloc = ;
  1070. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1071. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1072. opcode OPCODE_IMM32 take_addr 0x00860f02 = ;
  1073. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1074. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1075. opcode OPCODE_RELATIVE take_addr 1 = ;
  1076. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1077. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1078. opcode_map name opcode map_set ;
  1079. @name "jnae" = ;
  1080. @opcode SIZEOF_OPCODE malloc = ;
  1081. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1082. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1083. opcode OPCODE_IMM32 take_addr 0x00820f02 = ;
  1084. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1085. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1086. opcode OPCODE_RELATIVE take_addr 1 = ;
  1087. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1088. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1089. opcode_map name opcode map_set ;
  1090. @name "jnb" = ;
  1091. @opcode SIZEOF_OPCODE malloc = ;
  1092. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1093. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1094. opcode OPCODE_IMM32 take_addr 0x00830f02 = ;
  1095. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1096. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1097. opcode OPCODE_RELATIVE take_addr 1 = ;
  1098. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1099. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1100. opcode_map name opcode map_set ;
  1101. @name "jnbe" = ;
  1102. @opcode SIZEOF_OPCODE malloc = ;
  1103. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1104. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1105. opcode OPCODE_IMM32 take_addr 0x00870f02 = ;
  1106. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1107. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1108. opcode OPCODE_RELATIVE take_addr 1 = ;
  1109. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1110. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1111. opcode_map name opcode map_set ;
  1112. @name "jnc" = ;
  1113. @opcode SIZEOF_OPCODE malloc = ;
  1114. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1115. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1116. opcode OPCODE_IMM32 take_addr 0x00830f02 = ;
  1117. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1118. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1119. opcode OPCODE_RELATIVE take_addr 1 = ;
  1120. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1121. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1122. opcode_map name opcode map_set ;
  1123. @name "jne" = ;
  1124. @opcode SIZEOF_OPCODE malloc = ;
  1125. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1126. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1127. opcode OPCODE_IMM32 take_addr 0x00850f02 = ;
  1128. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1129. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1130. opcode OPCODE_RELATIVE take_addr 1 = ;
  1131. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1132. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1133. opcode_map name opcode map_set ;
  1134. @name "jng" = ;
  1135. @opcode SIZEOF_OPCODE malloc = ;
  1136. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1137. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1138. opcode OPCODE_IMM32 take_addr 0x008e0f02 = ;
  1139. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1140. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1141. opcode OPCODE_RELATIVE take_addr 1 = ;
  1142. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1143. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1144. opcode_map name opcode map_set ;
  1145. @name "jnge" = ;
  1146. @opcode SIZEOF_OPCODE malloc = ;
  1147. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1148. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1149. opcode OPCODE_IMM32 take_addr 0x008c0f02 = ;
  1150. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1151. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1152. opcode OPCODE_RELATIVE take_addr 1 = ;
  1153. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1154. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1155. opcode_map name opcode map_set ;
  1156. @name "jnl" = ;
  1157. @opcode SIZEOF_OPCODE malloc = ;
  1158. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1159. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1160. opcode OPCODE_IMM32 take_addr 0x008d0f02 = ;
  1161. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1162. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1163. opcode OPCODE_RELATIVE take_addr 1 = ;
  1164. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1165. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1166. opcode_map name opcode map_set ;
  1167. @name "jnle" = ;
  1168. @opcode SIZEOF_OPCODE malloc = ;
  1169. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1170. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1171. opcode OPCODE_IMM32 take_addr 0x008f0f02 = ;
  1172. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1173. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1174. opcode OPCODE_RELATIVE take_addr 1 = ;
  1175. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1176. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1177. opcode_map name opcode map_set ;
  1178. @name "jno" = ;
  1179. @opcode SIZEOF_OPCODE malloc = ;
  1180. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1181. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1182. opcode OPCODE_IMM32 take_addr 0x00810f02 = ;
  1183. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1184. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1185. opcode OPCODE_RELATIVE take_addr 1 = ;
  1186. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1187. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1188. opcode_map name opcode map_set ;
  1189. @name "jnp" = ;
  1190. @opcode SIZEOF_OPCODE malloc = ;
  1191. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1192. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1193. opcode OPCODE_IMM32 take_addr 0x008b0f02 = ;
  1194. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1195. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1196. opcode OPCODE_RELATIVE take_addr 1 = ;
  1197. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1198. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1199. opcode_map name opcode map_set ;
  1200. @name "jns" = ;
  1201. @opcode SIZEOF_OPCODE malloc = ;
  1202. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1203. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1204. opcode OPCODE_IMM32 take_addr 0x00890f02 = ;
  1205. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1206. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1207. opcode OPCODE_RELATIVE take_addr 1 = ;
  1208. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1209. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1210. opcode_map name opcode map_set ;
  1211. @name "jnz" = ;
  1212. @opcode SIZEOF_OPCODE malloc = ;
  1213. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1214. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1215. opcode OPCODE_IMM32 take_addr 0x00850f02 = ;
  1216. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1217. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1218. opcode OPCODE_RELATIVE take_addr 1 = ;
  1219. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1220. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1221. opcode_map name opcode map_set ;
  1222. @name "jo" = ;
  1223. @opcode SIZEOF_OPCODE malloc = ;
  1224. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1225. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1226. opcode OPCODE_IMM32 take_addr 0x00800f02 = ;
  1227. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1228. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1229. opcode OPCODE_RELATIVE take_addr 1 = ;
  1230. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1231. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1232. opcode_map name opcode map_set ;
  1233. @name "jp" = ;
  1234. @opcode SIZEOF_OPCODE malloc = ;
  1235. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1236. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1237. opcode OPCODE_IMM32 take_addr 0x008a0f02 = ;
  1238. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1239. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1240. opcode OPCODE_RELATIVE take_addr 1 = ;
  1241. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1242. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1243. opcode_map name opcode map_set ;
  1244. @name "jpe" = ;
  1245. @opcode SIZEOF_OPCODE malloc = ;
  1246. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1247. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1248. opcode OPCODE_IMM32 take_addr 0x008a0f02 = ;
  1249. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1250. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1251. opcode OPCODE_RELATIVE take_addr 1 = ;
  1252. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1253. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1254. opcode_map name opcode map_set ;
  1255. @name "jpo" = ;
  1256. @opcode SIZEOF_OPCODE malloc = ;
  1257. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1258. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1259. opcode OPCODE_IMM32 take_addr 0x008b0f02 = ;
  1260. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1261. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1262. opcode OPCODE_RELATIVE take_addr 1 = ;
  1263. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1264. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1265. opcode_map name opcode map_set ;
  1266. @name "js" = ;
  1267. @opcode SIZEOF_OPCODE malloc = ;
  1268. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1269. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1270. opcode OPCODE_IMM32 take_addr 0x00880f02 = ;
  1271. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1272. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1273. opcode OPCODE_RELATIVE take_addr 1 = ;
  1274. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1275. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1276. opcode_map name opcode map_set ;
  1277. @name "seta" = ;
  1278. @opcode SIZEOF_OPCODE malloc = ;
  1279. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1280. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1281. opcode OPCODE_RM8 take_addr 0x00970f02 = ;
  1282. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1283. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1284. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1285. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1286. opcode_map name opcode map_set ;
  1287. @name "setae" = ;
  1288. @opcode SIZEOF_OPCODE malloc = ;
  1289. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1290. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1291. opcode OPCODE_RM8 take_addr 0x00930f02 = ;
  1292. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1293. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1294. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1295. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1296. opcode_map name opcode map_set ;
  1297. @name "setb" = ;
  1298. @opcode SIZEOF_OPCODE malloc = ;
  1299. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1300. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1301. opcode OPCODE_RM8 take_addr 0x00920f02 = ;
  1302. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1303. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1304. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1305. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1306. opcode_map name opcode map_set ;
  1307. @name "setbe" = ;
  1308. @opcode SIZEOF_OPCODE malloc = ;
  1309. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1310. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1311. opcode OPCODE_RM8 take_addr 0x00960f02 = ;
  1312. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1313. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1314. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1315. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1316. opcode_map name opcode map_set ;
  1317. @name "setc" = ;
  1318. @opcode SIZEOF_OPCODE malloc = ;
  1319. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1320. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1321. opcode OPCODE_RM8 take_addr 0x00920f02 = ;
  1322. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1323. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1324. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1325. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1326. opcode_map name opcode map_set ;
  1327. @name "sete" = ;
  1328. @opcode SIZEOF_OPCODE malloc = ;
  1329. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1330. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1331. opcode OPCODE_RM8 take_addr 0x00940f02 = ;
  1332. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1333. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1334. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1335. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1336. opcode_map name opcode map_set ;
  1337. @name "setg" = ;
  1338. @opcode SIZEOF_OPCODE malloc = ;
  1339. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1340. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1341. opcode OPCODE_RM8 take_addr 0x009f0f02 = ;
  1342. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1343. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1344. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1345. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1346. opcode_map name opcode map_set ;
  1347. @name "setge" = ;
  1348. @opcode SIZEOF_OPCODE malloc = ;
  1349. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1350. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1351. opcode OPCODE_RM8 take_addr 0x009d0f02 = ;
  1352. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1353. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1354. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1355. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1356. opcode_map name opcode map_set ;
  1357. @name "setl" = ;
  1358. @opcode SIZEOF_OPCODE malloc = ;
  1359. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1360. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1361. opcode OPCODE_RM8 take_addr 0x009c0f02 = ;
  1362. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1363. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1364. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1365. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1366. opcode_map name opcode map_set ;
  1367. @name "setle" = ;
  1368. @opcode SIZEOF_OPCODE malloc = ;
  1369. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1370. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1371. opcode OPCODE_RM8 take_addr 0x009e0f02 = ;
  1372. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1373. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1374. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1375. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1376. opcode_map name opcode map_set ;
  1377. @name "setna" = ;
  1378. @opcode SIZEOF_OPCODE malloc = ;
  1379. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1380. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1381. opcode OPCODE_RM8 take_addr 0x00960f02 = ;
  1382. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1383. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1384. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1385. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1386. opcode_map name opcode map_set ;
  1387. @name "setnae" = ;
  1388. @opcode SIZEOF_OPCODE malloc = ;
  1389. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1390. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1391. opcode OPCODE_RM8 take_addr 0x00920f02 = ;
  1392. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1393. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1394. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1395. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1396. opcode_map name opcode map_set ;
  1397. @name "setnc" = ;
  1398. @opcode SIZEOF_OPCODE malloc = ;
  1399. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1400. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1401. opcode OPCODE_RM8 take_addr 0x00930f02 = ;
  1402. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1403. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1404. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1405. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1406. opcode_map name opcode map_set ;
  1407. @name "setne" = ;
  1408. @opcode SIZEOF_OPCODE malloc = ;
  1409. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1410. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1411. opcode OPCODE_RM8 take_addr 0x00950f02 = ;
  1412. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1413. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1414. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1415. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1416. opcode_map name opcode map_set ;
  1417. @name "setng" = ;
  1418. @opcode SIZEOF_OPCODE malloc = ;
  1419. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1420. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1421. opcode OPCODE_RM8 take_addr 0x009e0f02 = ;
  1422. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1423. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1424. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1425. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1426. opcode_map name opcode map_set ;
  1427. @name "setnge" = ;
  1428. @opcode SIZEOF_OPCODE malloc = ;
  1429. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1430. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1431. opcode OPCODE_RM8 take_addr 0x009c0f02 = ;
  1432. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1433. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1434. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1435. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1436. opcode_map name opcode map_set ;
  1437. @name "setnl" = ;
  1438. @opcode SIZEOF_OPCODE malloc = ;
  1439. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1440. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1441. opcode OPCODE_RM8 take_addr 0x009d0f02 = ;
  1442. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1443. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1444. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1445. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1446. opcode_map name opcode map_set ;
  1447. @name "setnle" = ;
  1448. @opcode SIZEOF_OPCODE malloc = ;
  1449. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1450. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1451. opcode OPCODE_RM8 take_addr 0x009f0f02 = ;
  1452. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1453. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1454. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1455. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1456. opcode_map name opcode map_set ;
  1457. @name "setno" = ;
  1458. @opcode SIZEOF_OPCODE malloc = ;
  1459. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1460. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1461. opcode OPCODE_RM8 take_addr 0x00910f02 = ;
  1462. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1463. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1464. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1465. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1466. opcode_map name opcode map_set ;
  1467. @name "setnp" = ;
  1468. @opcode SIZEOF_OPCODE malloc = ;
  1469. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1470. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1471. opcode OPCODE_RM8 take_addr 0x009b0f02 = ;
  1472. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1473. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1474. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1475. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1476. opcode_map name opcode map_set ;
  1477. @name "setns" = ;
  1478. @opcode SIZEOF_OPCODE malloc = ;
  1479. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1480. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1481. opcode OPCODE_RM8 take_addr 0x00990f02 = ;
  1482. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1483. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1484. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1485. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1486. opcode_map name opcode map_set ;
  1487. @name "setnz" = ;
  1488. @opcode SIZEOF_OPCODE malloc = ;
  1489. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1490. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1491. opcode OPCODE_RM8 take_addr 0x00950f02 = ;
  1492. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1493. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1494. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1495. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1496. opcode_map name opcode map_set ;
  1497. @name "seto" = ;
  1498. @opcode SIZEOF_OPCODE malloc = ;
  1499. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1500. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1501. opcode OPCODE_RM8 take_addr 0x00900f02 = ;
  1502. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1503. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1504. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1505. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1506. opcode_map name opcode map_set ;
  1507. @name "setp" = ;
  1508. @opcode SIZEOF_OPCODE malloc = ;
  1509. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1510. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1511. opcode OPCODE_RM8 take_addr 0x009a0f02 = ;
  1512. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1513. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1514. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1515. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1516. opcode_map name opcode map_set ;
  1517. @name "setpe" = ;
  1518. @opcode SIZEOF_OPCODE malloc = ;
  1519. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1520. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1521. opcode OPCODE_RM8 take_addr 0x009a0f02 = ;
  1522. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1523. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1524. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1525. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1526. opcode_map name opcode map_set ;
  1527. @name "setpo" = ;
  1528. @opcode SIZEOF_OPCODE malloc = ;
  1529. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1530. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1531. opcode OPCODE_RM8 take_addr 0x009b0f02 = ;
  1532. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1533. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1534. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1535. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1536. opcode_map name opcode map_set ;
  1537. @name "sets" = ;
  1538. @opcode SIZEOF_OPCODE malloc = ;
  1539. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1540. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1541. opcode OPCODE_RM8 take_addr 0x00980f02 = ;
  1542. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1543. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1544. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1545. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1546. opcode_map name opcode map_set ;
  1547. @name "setz" = ;
  1548. @opcode SIZEOF_OPCODE malloc = ;
  1549. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1550. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1551. opcode OPCODE_RM8 take_addr 0x00940f02 = ;
  1552. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1553. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1554. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1555. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1556. opcode_map name opcode map_set ;
  1557. @name "mul" = ;
  1558. @opcode SIZEOF_OPCODE malloc = ;
  1559. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1560. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1561. opcode OPCODE_RM8 take_addr 0x0400f601 = ;
  1562. opcode OPCODE_RM32 take_addr 0x0400f701 = ;
  1563. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1564. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1565. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1566. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1567. opcode_map name opcode map_set ;
  1568. @name "div" = ;
  1569. @opcode SIZEOF_OPCODE malloc = ;
  1570. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1571. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1572. opcode OPCODE_RM8 take_addr 0x0600f601 = ;
  1573. opcode OPCODE_RM32 take_addr 0x0600f701 = ;
  1574. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1575. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1576. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1577. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1578. opcode_map name opcode map_set ;
  1579. @name "idiv" = ;
  1580. @opcode SIZEOF_OPCODE malloc = ;
  1581. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1582. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1583. opcode OPCODE_RM8 take_addr 0x0700f601 = ;
  1584. opcode OPCODE_RM32 take_addr 0x0700f701 = ;
  1585. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1586. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1587. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1588. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1589. opcode_map name opcode map_set ;
  1590. @name "not" = ;
  1591. @opcode SIZEOF_OPCODE malloc = ;
  1592. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1593. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1594. opcode OPCODE_RM8 take_addr 0x0200f601 = ;
  1595. opcode OPCODE_RM32 take_addr 0x0200f701 = ;
  1596. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1597. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1598. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1599. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1600. opcode_map name opcode map_set ;
  1601. @name "neg" = ;
  1602. @opcode SIZEOF_OPCODE malloc = ;
  1603. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1604. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1605. opcode OPCODE_RM8 take_addr 0x0300f601 = ;
  1606. opcode OPCODE_RM32 take_addr 0x0300f701 = ;
  1607. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1608. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1609. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1610. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1611. opcode_map name opcode map_set ;
  1612. @name "inc" = ;
  1613. @opcode SIZEOF_OPCODE malloc = ;
  1614. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1615. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1616. opcode OPCODE_RM8 take_addr 0x0000fe01 = ;
  1617. opcode OPCODE_RM32 take_addr 0x0000ff01 = ;
  1618. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1619. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1620. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1621. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1622. opcode_map name opcode map_set ;
  1623. @name "dec" = ;
  1624. @opcode SIZEOF_OPCODE malloc = ;
  1625. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1626. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1627. opcode OPCODE_RM8 take_addr 0x0100fe01 = ;
  1628. opcode OPCODE_RM32 take_addr 0x0100ff01 = ;
  1629. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1630. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1631. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1632. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1633. opcode_map name opcode map_set ;
  1634. @name "push" = ;
  1635. @opcode SIZEOF_OPCODE malloc = ;
  1636. opcode OPCODE_ARG_NUM take_addr 0x101 = ;
  1637. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1638. opcode OPCODE_RM32 take_addr 0x0600ff01 = ;
  1639. opcode OPCODE_IMM32 take_addr 0x00006801 = ;
  1640. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1641. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1642. opcode OPCODE_RELATIVE take_addr 0 = ;
  1643. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1644. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1645. opcode_map name opcode map_set ;
  1646. @name "pop" = ;
  1647. @opcode SIZEOF_OPCODE malloc = ;
  1648. opcode OPCODE_ARG_NUM take_addr 0x101 = ;
  1649. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1650. opcode OPCODE_RM32 take_addr 0x00008f01 = ;
  1651. opcode OPCODE_ALLOW_IMM take_addr 0 = ;
  1652. opcode OPCODE_ALLOW_RM take_addr 1 = ;
  1653. opcode OPCODE_FORCE_8 take_addr 0 = ;
  1654. opcode OPCODE_FORCE_32 take_addr 1 = ;
  1655. opcode_map name opcode map_set ;
  1656. @name "int" = ;
  1657. @opcode SIZEOF_OPCODE malloc = ;
  1658. opcode OPCODE_ARG_NUM take_addr 1 = ;
  1659. opcode OPCODE_HANDLER take_addr @jmp_like_handler = ;
  1660. opcode OPCODE_IMM8 take_addr 0x0000cd01 = ;
  1661. opcode OPCODE_ALLOW_IMM take_addr 1 = ;
  1662. opcode OPCODE_ALLOW_RM take_addr 0 = ;
  1663. opcode OPCODE_RELATIVE take_addr 0 = ;
  1664. opcode OPCODE_FORCE_8 take_addr 1 = ;
  1665. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1666. opcode_map name opcode map_set ;
  1667. @name "imul" = ;
  1668. @opcode SIZEOF_OPCODE malloc = ;
  1669. opcode OPCODE_ARG_NUM take_addr 0xff = ;
  1670. opcode OPCODE_HANDLER take_addr @imul_like_handler = ;
  1671. opcode OPCODE_RM8 take_addr 0x0500f601 = ;
  1672. opcode OPCODE_RM32 take_addr 0x0500f701 = ;
  1673. opcode OPCODE_R32RM32 take_addr 0x00af0f02 = ;
  1674. opcode OPCODE_R32RM32IMM32 take_addr 0x00006901 = ;
  1675. opcode_map name opcode map_set ;
  1676. @name "sal" = ;
  1677. @opcode SIZEOF_OPCODE malloc = ;
  1678. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1679. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1680. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1681. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1682. opcode OPCODE_RM8IMM8 take_addr 0x0400c001 = ;
  1683. opcode OPCODE_RM32IMM8 take_addr 0x0400c101 = ;
  1684. opcode OPCODE_RM8CL take_addr 0x0400d201 = ;
  1685. opcode OPCODE_RM32CL take_addr 0x0400d301 = ;
  1686. opcode_map name opcode map_set ;
  1687. @name "shl" = ;
  1688. @opcode SIZEOF_OPCODE malloc = ;
  1689. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1690. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1691. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1692. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1693. opcode OPCODE_RM8IMM8 take_addr 0x0400c001 = ;
  1694. opcode OPCODE_RM32IMM8 take_addr 0x0400c101 = ;
  1695. opcode OPCODE_RM8CL take_addr 0x0400d201 = ;
  1696. opcode OPCODE_RM32CL take_addr 0x0400d301 = ;
  1697. opcode_map name opcode map_set ;
  1698. @name "sar" = ;
  1699. @opcode SIZEOF_OPCODE malloc = ;
  1700. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1701. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1702. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1703. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1704. opcode OPCODE_RM8IMM8 take_addr 0x0700c001 = ;
  1705. opcode OPCODE_RM32IMM8 take_addr 0x0700c101 = ;
  1706. opcode OPCODE_RM8CL take_addr 0x0700d201 = ;
  1707. opcode OPCODE_RM32CL take_addr 0x0700d301 = ;
  1708. opcode_map name opcode map_set ;
  1709. @name "shr" = ;
  1710. @opcode SIZEOF_OPCODE malloc = ;
  1711. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1712. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1713. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1714. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1715. opcode OPCODE_RM8IMM8 take_addr 0x0500c001 = ;
  1716. opcode OPCODE_RM32IMM8 take_addr 0x0500c101 = ;
  1717. opcode OPCODE_RM8CL take_addr 0x0500d201 = ;
  1718. opcode OPCODE_RM32CL take_addr 0x0500d301 = ;
  1719. opcode_map name opcode map_set ;
  1720. @name "rcl" = ;
  1721. @opcode SIZEOF_OPCODE malloc = ;
  1722. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1723. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1724. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1725. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1726. opcode OPCODE_RM8IMM8 take_addr 0x0200c001 = ;
  1727. opcode OPCODE_RM32IMM8 take_addr 0x0200c101 = ;
  1728. opcode OPCODE_RM8CL take_addr 0x0200d201 = ;
  1729. opcode OPCODE_RM32CL take_addr 0x0200d301 = ;
  1730. opcode_map name opcode map_set ;
  1731. @name "rcr" = ;
  1732. @opcode SIZEOF_OPCODE malloc = ;
  1733. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1734. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1735. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1736. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1737. opcode OPCODE_RM8IMM8 take_addr 0x0300c001 = ;
  1738. opcode OPCODE_RM32IMM8 take_addr 0x0300c101 = ;
  1739. opcode OPCODE_RM8CL take_addr 0x0300d201 = ;
  1740. opcode OPCODE_RM32CL take_addr 0x0300d301 = ;
  1741. opcode_map name opcode map_set ;
  1742. @name "rol" = ;
  1743. @opcode SIZEOF_OPCODE malloc = ;
  1744. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1745. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1746. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1747. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1748. opcode OPCODE_RM8IMM8 take_addr 0x0000c001 = ;
  1749. opcode OPCODE_RM32IMM8 take_addr 0x0000c101 = ;
  1750. opcode OPCODE_RM8CL take_addr 0x0000d201 = ;
  1751. opcode OPCODE_RM32CL take_addr 0x0000d301 = ;
  1752. opcode_map name opcode map_set ;
  1753. @name "ror" = ;
  1754. @opcode SIZEOF_OPCODE malloc = ;
  1755. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1756. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1757. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1758. opcode OPCODE_ALLOW_CL take_addr 1 = ;
  1759. opcode OPCODE_RM8IMM8 take_addr 0x0100c001 = ;
  1760. opcode OPCODE_RM32IMM8 take_addr 0x0100c101 = ;
  1761. opcode OPCODE_RM8CL take_addr 0x0100d201 = ;
  1762. opcode OPCODE_RM32CL take_addr 0x0100d301 = ;
  1763. opcode_map name opcode map_set ;
  1764. @name "bt" = ;
  1765. @opcode SIZEOF_OPCODE malloc = ;
  1766. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1767. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1768. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1769. opcode OPCODE_ALLOW_CL take_addr 0 = ;
  1770. opcode OPCODE_RM32IMM8 take_addr 0x04ba0f02 = ;
  1771. opcode_map name opcode map_set ;
  1772. @name "btc" = ;
  1773. @opcode SIZEOF_OPCODE malloc = ;
  1774. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1775. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1776. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1777. opcode OPCODE_ALLOW_CL take_addr 0 = ;
  1778. opcode OPCODE_RM32IMM8 take_addr 0x07ba0f02 = ;
  1779. opcode_map name opcode map_set ;
  1780. @name "btr" = ;
  1781. @opcode SIZEOF_OPCODE malloc = ;
  1782. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1783. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1784. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1785. opcode OPCODE_ALLOW_CL take_addr 0 = ;
  1786. opcode OPCODE_RM32IMM8 take_addr 0x06ba0f02 = ;
  1787. opcode_map name opcode map_set ;
  1788. @name "bts" = ;
  1789. @opcode SIZEOF_OPCODE malloc = ;
  1790. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1791. opcode OPCODE_HANDLER take_addr @sal_like_handler = ;
  1792. opcode OPCODE_FORCE_32 take_addr 0 = ;
  1793. opcode OPCODE_ALLOW_CL take_addr 0 = ;
  1794. opcode OPCODE_RM32IMM8 take_addr 0x05ba0f02 = ;
  1795. opcode_map name opcode map_set ;
  1796. @name "movzx" = ;
  1797. @opcode SIZEOF_OPCODE malloc = ;
  1798. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1799. opcode OPCODE_HANDLER take_addr @movzx_like_handler = ;
  1800. opcode OPCODE_R32RM8 take_addr 0x00b60f02 = ;
  1801. opcode OPCODE_R32RM16 take_addr 0x00b70f02 = ;
  1802. opcode_map name opcode map_set ;
  1803. @name "movsx" = ;
  1804. @opcode SIZEOF_OPCODE malloc = ;
  1805. opcode OPCODE_ARG_NUM take_addr 2 = ;
  1806. opcode OPCODE_HANDLER take_addr @movzx_like_handler = ;
  1807. opcode OPCODE_R32RM8 take_addr 0x00be0f02 = ;
  1808. opcode OPCODE_R32RM16 take_addr 0x00bf0f02 = ;
  1809. opcode_map name opcode map_set ;
  1810. @name "ret" = ;
  1811. @opcode SIZEOF_OPCODE malloc = ;
  1812. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1813. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1814. opcode OPCODE_NO_OPERAND take_addr 0x0000c301 = ;
  1815. opcode_map name opcode map_set ;
  1816. @name "retn" = ;
  1817. @opcode SIZEOF_OPCODE malloc = ;
  1818. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1819. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1820. opcode OPCODE_NO_OPERAND take_addr 0x0000c301 = ;
  1821. opcode_map name opcode map_set ;
  1822. @name "rdpmc" = ;
  1823. @opcode SIZEOF_OPCODE malloc = ;
  1824. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1825. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1826. opcode OPCODE_NO_OPERAND take_addr 0x00330f02 = ;
  1827. opcode_map name opcode map_set ;
  1828. @name "rdmsr" = ;
  1829. @opcode SIZEOF_OPCODE malloc = ;
  1830. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1831. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1832. opcode OPCODE_NO_OPERAND take_addr 0x00320f02 = ;
  1833. opcode_map name opcode map_set ;
  1834. @name "wrmsr" = ;
  1835. @opcode SIZEOF_OPCODE malloc = ;
  1836. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1837. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1838. opcode OPCODE_NO_OPERAND take_addr 0x00300f02 = ;
  1839. opcode_map name opcode map_set ;
  1840. @name "clc" = ;
  1841. @opcode SIZEOF_OPCODE malloc = ;
  1842. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1843. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1844. opcode OPCODE_NO_OPERAND take_addr 0x0000f801 = ;
  1845. opcode_map name opcode map_set ;
  1846. @name "cld" = ;
  1847. @opcode SIZEOF_OPCODE malloc = ;
  1848. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1849. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1850. opcode OPCODE_NO_OPERAND take_addr 0x0000fc01 = ;
  1851. opcode_map name opcode map_set ;
  1852. @name "cli" = ;
  1853. @opcode SIZEOF_OPCODE malloc = ;
  1854. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1855. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1856. opcode OPCODE_NO_OPERAND take_addr 0x0000fa01 = ;
  1857. opcode_map name opcode map_set ;
  1858. @name "cmc" = ;
  1859. @opcode SIZEOF_OPCODE malloc = ;
  1860. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1861. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1862. opcode OPCODE_NO_OPERAND take_addr 0x0000f501 = ;
  1863. opcode_map name opcode map_set ;
  1864. @name "stc" = ;
  1865. @opcode SIZEOF_OPCODE malloc = ;
  1866. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1867. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1868. opcode OPCODE_NO_OPERAND take_addr 0x0000f901 = ;
  1869. opcode_map name opcode map_set ;
  1870. @name "std" = ;
  1871. @opcode SIZEOF_OPCODE malloc = ;
  1872. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1873. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1874. opcode OPCODE_NO_OPERAND take_addr 0x0000fd01 = ;
  1875. opcode_map name opcode map_set ;
  1876. @name "sti" = ;
  1877. @opcode SIZEOF_OPCODE malloc = ;
  1878. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1879. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1880. opcode OPCODE_NO_OPERAND take_addr 0x0000fb01 = ;
  1881. opcode_map name opcode map_set ;
  1882. @name "cdq" = ;
  1883. @opcode SIZEOF_OPCODE malloc = ;
  1884. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1885. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1886. opcode OPCODE_NO_OPERAND take_addr 0x00009801 = ;
  1887. opcode_map name opcode map_set ;
  1888. @name "xlatb" = ;
  1889. @opcode SIZEOF_OPCODE malloc = ;
  1890. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1891. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1892. opcode OPCODE_NO_OPERAND take_addr 0x0000d701 = ;
  1893. opcode_map name opcode map_set ;
  1894. @name "lodsb" = ;
  1895. @opcode SIZEOF_OPCODE malloc = ;
  1896. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1897. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1898. opcode OPCODE_NO_OPERAND take_addr 0x0000ac01 = ;
  1899. opcode_map name opcode map_set ;
  1900. @name "lodsw" = ;
  1901. @opcode SIZEOF_OPCODE malloc = ;
  1902. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1903. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1904. opcode OPCODE_NO_OPERAND take_addr 0x00ad6602 = ;
  1905. opcode_map name opcode map_set ;
  1906. @name "lodsd" = ;
  1907. @opcode SIZEOF_OPCODE malloc = ;
  1908. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1909. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1910. opcode OPCODE_NO_OPERAND take_addr 0x0000ad01 = ;
  1911. opcode_map name opcode map_set ;
  1912. @name "stosb" = ;
  1913. @opcode SIZEOF_OPCODE malloc = ;
  1914. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1915. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1916. opcode OPCODE_NO_OPERAND take_addr 0x0000aa01 = ;
  1917. opcode_map name opcode map_set ;
  1918. @name "stosw" = ;
  1919. @opcode SIZEOF_OPCODE malloc = ;
  1920. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1921. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1922. opcode OPCODE_NO_OPERAND take_addr 0x00ab6602 = ;
  1923. opcode_map name opcode map_set ;
  1924. @name "stosd" = ;
  1925. @opcode SIZEOF_OPCODE malloc = ;
  1926. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1927. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1928. opcode OPCODE_NO_OPERAND take_addr 0x0000ab01 = ;
  1929. opcode_map name opcode map_set ;
  1930. @name "scasb" = ;
  1931. @opcode SIZEOF_OPCODE malloc = ;
  1932. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1933. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1934. opcode OPCODE_NO_OPERAND take_addr 0x0000ae01 = ;
  1935. opcode_map name opcode map_set ;
  1936. @name "scasw" = ;
  1937. @opcode SIZEOF_OPCODE malloc = ;
  1938. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1939. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1940. opcode OPCODE_NO_OPERAND take_addr 0x00af6602 = ;
  1941. opcode_map name opcode map_set ;
  1942. @name "scasd" = ;
  1943. @opcode SIZEOF_OPCODE malloc = ;
  1944. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1945. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1946. opcode OPCODE_NO_OPERAND take_addr 0x0000af01 = ;
  1947. opcode_map name opcode map_set ;
  1948. @name "movsb" = ;
  1949. @opcode SIZEOF_OPCODE malloc = ;
  1950. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1951. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1952. opcode OPCODE_NO_OPERAND take_addr 0x0000a401 = ;
  1953. opcode_map name opcode map_set ;
  1954. @name "movsw" = ;
  1955. @opcode SIZEOF_OPCODE malloc = ;
  1956. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1957. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1958. opcode OPCODE_NO_OPERAND take_addr 0x00a56602 = ;
  1959. opcode_map name opcode map_set ;
  1960. @name "movsd" = ;
  1961. @opcode SIZEOF_OPCODE malloc = ;
  1962. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1963. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1964. opcode OPCODE_NO_OPERAND take_addr 0x0000a401 = ;
  1965. opcode_map name opcode map_set ;
  1966. @name "cmpsb" = ;
  1967. @opcode SIZEOF_OPCODE malloc = ;
  1968. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1969. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1970. opcode OPCODE_NO_OPERAND take_addr 0x0000a601 = ;
  1971. opcode_map name opcode map_set ;
  1972. @name "cmpsw" = ;
  1973. @opcode SIZEOF_OPCODE malloc = ;
  1974. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1975. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1976. opcode OPCODE_NO_OPERAND take_addr 0x00a76602 = ;
  1977. opcode_map name opcode map_set ;
  1978. @name "cmpsd" = ;
  1979. @opcode SIZEOF_OPCODE malloc = ;
  1980. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1981. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1982. opcode OPCODE_NO_OPERAND take_addr 0x0000a701 = ;
  1983. opcode_map name opcode map_set ;
  1984. @name "cbw" = ;
  1985. @opcode SIZEOF_OPCODE malloc = ;
  1986. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1987. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1988. opcode OPCODE_NO_OPERAND take_addr 0x00986602 = ;
  1989. opcode_map name opcode map_set ;
  1990. @name "cwde" = ;
  1991. @opcode SIZEOF_OPCODE malloc = ;
  1992. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1993. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  1994. opcode OPCODE_NO_OPERAND take_addr 0x00009801 = ;
  1995. opcode_map name opcode map_set ;
  1996. @name "salc" = ;
  1997. @opcode SIZEOF_OPCODE malloc = ;
  1998. opcode OPCODE_ARG_NUM take_addr 0 = ;
  1999. opcode OPCODE_HANDLER take_addr @ret_like_handler = ;
  2000. opcode OPCODE_NO_OPERAND take_addr 0x0000d601 = ;
  2001. opcode_map name opcode map_set ;
  2002. @name "xlat" = ;
  2003. @opcode SIZEOF_OPCODE malloc = ;
  2004. opcode OPCODE_ARG_NUM take_addr 1 = ;
  2005. opcode OPCODE_HANDLER take_addr @stos_like_handler = ;
  2006. opcode OPCODE_M8 take_addr 0x0000d701 = ;
  2007. opcode OPCODE_FORCE_8 take_addr 1 = ;
  2008. opcode_map name opcode map_set ;
  2009. @name "lods" = ;
  2010. @opcode SIZEOF_OPCODE malloc = ;
  2011. opcode OPCODE_ARG_NUM take_addr 1 = ;
  2012. opcode OPCODE_HANDLER take_addr @stos_like_handler = ;
  2013. opcode OPCODE_M8 take_addr 0x0000ac01 = ;
  2014. opcode OPCODE_M16 take_addr 0x00ad6602 = ;
  2015. opcode OPCODE_M32 take_addr 0x0000ad01 = ;
  2016. opcode OPCODE_FORCE_8 take_addr 0 = ;
  2017. opcode_map name opcode map_set ;
  2018. @name "stos" = ;
  2019. @opcode SIZEOF_OPCODE malloc = ;
  2020. opcode OPCODE_ARG_NUM take_addr 1 = ;
  2021. opcode OPCODE_HANDLER take_addr @stos_like_handler = ;
  2022. opcode OPCODE_M8 take_addr 0x0000aa01 = ;
  2023. opcode OPCODE_M16 take_addr 0x00ab6602 = ;
  2024. opcode OPCODE_M32 take_addr 0x0000ab01 = ;
  2025. opcode OPCODE_FORCE_8 take_addr 0 = ;
  2026. opcode_map name opcode map_set ;
  2027. @name "scas" = ;
  2028. @opcode SIZEOF_OPCODE malloc = ;
  2029. opcode OPCODE_ARG_NUM take_addr 1 = ;
  2030. opcode OPCODE_HANDLER take_addr @stos_like_handler = ;
  2031. opcode OPCODE_M8 take_addr 0x0000ae01 = ;
  2032. opcode OPCODE_M16 take_addr 0x00af6602 = ;
  2033. opcode OPCODE_M32 take_addr 0x0000af01 = ;
  2034. opcode OPCODE_FORCE_8 take_addr 0 = ;
  2035. opcode_map name opcode map_set ;
  2036. @name "movs" = ;
  2037. @opcode SIZEOF_OPCODE malloc = ;
  2038. opcode OPCODE_ARG_NUM take_addr 2 = ;
  2039. opcode OPCODE_HANDLER take_addr @stos_like_handler = ;
  2040. opcode OPCODE_M8 take_addr 0x0000a401 = ;
  2041. opcode OPCODE_M16 take_addr 0x00a56602 = ;
  2042. opcode OPCODE_M32 take_addr 0x0000a501 = ;
  2043. opcode OPCODE_FORCE_8 take_addr 0 = ;
  2044. opcode_map name opcode map_set ;
  2045. @name "cmps" = ;
  2046. @opcode SIZEOF_OPCODE malloc = ;
  2047. opcode OPCODE_ARG_NUM take_addr 2 = ;
  2048. opcode OPCODE_HANDLER take_addr @stos_like_handler = ;
  2049. opcode OPCODE_M8 take_addr 0x0000a601 = ;
  2050. opcode OPCODE_M16 take_addr 0x00a76602 = ;
  2051. opcode OPCODE_M32 take_addr 0x0000a701 = ;
  2052. opcode OPCODE_FORCE_8 take_addr 0 = ;
  2053. opcode_map name opcode map_set ;
  2054. @name "shld" = ;
  2055. @opcode SIZEOF_OPCODE malloc = ;
  2056. opcode OPCODE_ARG_NUM take_addr 3 = ;
  2057. opcode OPCODE_HANDLER take_addr @shld_like_handler = ;
  2058. opcode OPCODE_RM32R32IMM8 take_addr 0x00a40f02 = ;
  2059. opcode OPCODE_RM32R32CL take_addr 0x00a50f02 = ;
  2060. opcode_map name opcode map_set ;
  2061. @name "shrd" = ;
  2062. @opcode SIZEOF_OPCODE malloc = ;
  2063. opcode OPCODE_ARG_NUM take_addr 3 = ;
  2064. opcode OPCODE_HANDLER take_addr @shld_like_handler = ;
  2065. opcode OPCODE_RM32R32IMM8 take_addr 0x00ac0f02 = ;
  2066. opcode OPCODE_RM32R32CL take_addr 0x00ad0f02 = ;
  2067. opcode_map name opcode map_set ;
  2068. @name "bsf" = ;
  2069. @opcode SIZEOF_OPCODE malloc = ;
  2070. opcode OPCODE_ARG_NUM take_addr 2 = ;
  2071. opcode OPCODE_HANDLER take_addr @bsf_like_handler = ;
  2072. opcode OPCODE_R32RM32 take_addr 0x00bc0f02 = ;
  2073. opcode_map name opcode map_set ;
  2074. @name "bsr" = ;
  2075. @opcode SIZEOF_OPCODE malloc = ;
  2076. opcode OPCODE_ARG_NUM take_addr 2 = ;
  2077. opcode OPCODE_HANDLER take_addr @bsf_like_handler = ;
  2078. opcode OPCODE_R32RM32 take_addr 0x00bd0f02 = ;
  2079. opcode_map name opcode map_set ;
  2080. opcode_map ret ;
  2081. }