regs.h 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. /* automatically generated from ./x86/regs.dat - do not edit */
  2. #ifndef NASM_REGS_H
  3. #define NASM_REGS_H
  4. #define EXPR_REG_START 1
  5. enum reg_enum {
  6. R_zero = 0,
  7. R_none = -1,
  8. R_AH = EXPR_REG_START,
  9. R_AL,
  10. R_AX,
  11. R_BH,
  12. R_BL,
  13. R_BND0,
  14. R_BND1,
  15. R_BND2,
  16. R_BND3,
  17. R_BP,
  18. R_BPL,
  19. R_BX,
  20. R_CH,
  21. R_CL,
  22. R_CR0,
  23. R_CR1,
  24. R_CR10,
  25. R_CR11,
  26. R_CR12,
  27. R_CR13,
  28. R_CR14,
  29. R_CR15,
  30. R_CR2,
  31. R_CR3,
  32. R_CR4,
  33. R_CR5,
  34. R_CR6,
  35. R_CR7,
  36. R_CR8,
  37. R_CR9,
  38. R_CS,
  39. R_CX,
  40. R_DH,
  41. R_DI,
  42. R_DIL,
  43. R_DL,
  44. R_DR0,
  45. R_DR1,
  46. R_DR10,
  47. R_DR11,
  48. R_DR12,
  49. R_DR13,
  50. R_DR14,
  51. R_DR15,
  52. R_DR2,
  53. R_DR3,
  54. R_DR4,
  55. R_DR5,
  56. R_DR6,
  57. R_DR7,
  58. R_DR8,
  59. R_DR9,
  60. R_DS,
  61. R_DX,
  62. R_EAX,
  63. R_EBP,
  64. R_EBX,
  65. R_ECX,
  66. R_EDI,
  67. R_EDX,
  68. R_ES,
  69. R_ESI,
  70. R_ESP,
  71. R_FS,
  72. R_GS,
  73. R_K0,
  74. R_K1,
  75. R_K2,
  76. R_K3,
  77. R_K4,
  78. R_K5,
  79. R_K6,
  80. R_K7,
  81. R_MM0,
  82. R_MM1,
  83. R_MM2,
  84. R_MM3,
  85. R_MM4,
  86. R_MM5,
  87. R_MM6,
  88. R_MM7,
  89. R_R10,
  90. R_R10B,
  91. R_R10D,
  92. R_R10W,
  93. R_R11,
  94. R_R11B,
  95. R_R11D,
  96. R_R11W,
  97. R_R12,
  98. R_R12B,
  99. R_R12D,
  100. R_R12W,
  101. R_R13,
  102. R_R13B,
  103. R_R13D,
  104. R_R13W,
  105. R_R14,
  106. R_R14B,
  107. R_R14D,
  108. R_R14W,
  109. R_R15,
  110. R_R15B,
  111. R_R15D,
  112. R_R15W,
  113. R_R8,
  114. R_R8B,
  115. R_R8D,
  116. R_R8W,
  117. R_R9,
  118. R_R9B,
  119. R_R9D,
  120. R_R9W,
  121. R_RAX,
  122. R_RBP,
  123. R_RBX,
  124. R_RCX,
  125. R_RDI,
  126. R_RDX,
  127. R_RSI,
  128. R_RSP,
  129. R_SEGR6,
  130. R_SEGR7,
  131. R_SI,
  132. R_SIL,
  133. R_SP,
  134. R_SPL,
  135. R_SS,
  136. R_ST0,
  137. R_ST1,
  138. R_ST2,
  139. R_ST3,
  140. R_ST4,
  141. R_ST5,
  142. R_ST6,
  143. R_ST7,
  144. R_TR0,
  145. R_TR1,
  146. R_TR2,
  147. R_TR3,
  148. R_TR4,
  149. R_TR5,
  150. R_TR6,
  151. R_TR7,
  152. R_XMM0,
  153. R_XMM1,
  154. R_XMM10,
  155. R_XMM11,
  156. R_XMM12,
  157. R_XMM13,
  158. R_XMM14,
  159. R_XMM15,
  160. R_XMM16,
  161. R_XMM17,
  162. R_XMM18,
  163. R_XMM19,
  164. R_XMM2,
  165. R_XMM20,
  166. R_XMM21,
  167. R_XMM22,
  168. R_XMM23,
  169. R_XMM24,
  170. R_XMM25,
  171. R_XMM26,
  172. R_XMM27,
  173. R_XMM28,
  174. R_XMM29,
  175. R_XMM3,
  176. R_XMM30,
  177. R_XMM31,
  178. R_XMM4,
  179. R_XMM5,
  180. R_XMM6,
  181. R_XMM7,
  182. R_XMM8,
  183. R_XMM9,
  184. R_YMM0,
  185. R_YMM1,
  186. R_YMM10,
  187. R_YMM11,
  188. R_YMM12,
  189. R_YMM13,
  190. R_YMM14,
  191. R_YMM15,
  192. R_YMM16,
  193. R_YMM17,
  194. R_YMM18,
  195. R_YMM19,
  196. R_YMM2,
  197. R_YMM20,
  198. R_YMM21,
  199. R_YMM22,
  200. R_YMM23,
  201. R_YMM24,
  202. R_YMM25,
  203. R_YMM26,
  204. R_YMM27,
  205. R_YMM28,
  206. R_YMM29,
  207. R_YMM3,
  208. R_YMM30,
  209. R_YMM31,
  210. R_YMM4,
  211. R_YMM5,
  212. R_YMM6,
  213. R_YMM7,
  214. R_YMM8,
  215. R_YMM9,
  216. R_ZMM0,
  217. R_ZMM1,
  218. R_ZMM10,
  219. R_ZMM11,
  220. R_ZMM12,
  221. R_ZMM13,
  222. R_ZMM14,
  223. R_ZMM15,
  224. R_ZMM16,
  225. R_ZMM17,
  226. R_ZMM18,
  227. R_ZMM19,
  228. R_ZMM2,
  229. R_ZMM20,
  230. R_ZMM21,
  231. R_ZMM22,
  232. R_ZMM23,
  233. R_ZMM24,
  234. R_ZMM25,
  235. R_ZMM26,
  236. R_ZMM27,
  237. R_ZMM28,
  238. R_ZMM29,
  239. R_ZMM3,
  240. R_ZMM30,
  241. R_ZMM31,
  242. R_ZMM4,
  243. R_ZMM5,
  244. R_ZMM6,
  245. R_ZMM7,
  246. R_ZMM8,
  247. R_ZMM9,
  248. REG_ENUM_LIMIT
  249. };
  250. #define EXPR_REG_END 240
  251. #define REG_NUM_AH 4
  252. #define REG_NUM_AL 0
  253. #define REG_NUM_AX 0
  254. #define REG_NUM_BH 7
  255. #define REG_NUM_BL 3
  256. #define REG_NUM_BND0 0
  257. #define REG_NUM_BND1 1
  258. #define REG_NUM_BND2 2
  259. #define REG_NUM_BND3 3
  260. #define REG_NUM_BP 5
  261. #define REG_NUM_BPL 5
  262. #define REG_NUM_BX 3
  263. #define REG_NUM_CH 5
  264. #define REG_NUM_CL 1
  265. #define REG_NUM_CR0 0
  266. #define REG_NUM_CR1 1
  267. #define REG_NUM_CR10 10
  268. #define REG_NUM_CR11 11
  269. #define REG_NUM_CR12 12
  270. #define REG_NUM_CR13 13
  271. #define REG_NUM_CR14 14
  272. #define REG_NUM_CR15 15
  273. #define REG_NUM_CR2 2
  274. #define REG_NUM_CR3 3
  275. #define REG_NUM_CR4 4
  276. #define REG_NUM_CR5 5
  277. #define REG_NUM_CR6 6
  278. #define REG_NUM_CR7 7
  279. #define REG_NUM_CR8 8
  280. #define REG_NUM_CR9 9
  281. #define REG_NUM_CS 1
  282. #define REG_NUM_CX 1
  283. #define REG_NUM_DH 6
  284. #define REG_NUM_DI 7
  285. #define REG_NUM_DIL 7
  286. #define REG_NUM_DL 2
  287. #define REG_NUM_DR0 0
  288. #define REG_NUM_DR1 1
  289. #define REG_NUM_DR10 10
  290. #define REG_NUM_DR11 11
  291. #define REG_NUM_DR12 12
  292. #define REG_NUM_DR13 13
  293. #define REG_NUM_DR14 14
  294. #define REG_NUM_DR15 15
  295. #define REG_NUM_DR2 2
  296. #define REG_NUM_DR3 3
  297. #define REG_NUM_DR4 4
  298. #define REG_NUM_DR5 5
  299. #define REG_NUM_DR6 6
  300. #define REG_NUM_DR7 7
  301. #define REG_NUM_DR8 8
  302. #define REG_NUM_DR9 9
  303. #define REG_NUM_DS 3
  304. #define REG_NUM_DX 2
  305. #define REG_NUM_EAX 0
  306. #define REG_NUM_EBP 5
  307. #define REG_NUM_EBX 3
  308. #define REG_NUM_ECX 1
  309. #define REG_NUM_EDI 7
  310. #define REG_NUM_EDX 2
  311. #define REG_NUM_ES 0
  312. #define REG_NUM_ESI 6
  313. #define REG_NUM_ESP 4
  314. #define REG_NUM_FS 4
  315. #define REG_NUM_GS 5
  316. #define REG_NUM_K0 0
  317. #define REG_NUM_K1 1
  318. #define REG_NUM_K2 2
  319. #define REG_NUM_K3 3
  320. #define REG_NUM_K4 4
  321. #define REG_NUM_K5 5
  322. #define REG_NUM_K6 6
  323. #define REG_NUM_K7 7
  324. #define REG_NUM_MM0 0
  325. #define REG_NUM_MM1 1
  326. #define REG_NUM_MM2 2
  327. #define REG_NUM_MM3 3
  328. #define REG_NUM_MM4 4
  329. #define REG_NUM_MM5 5
  330. #define REG_NUM_MM6 6
  331. #define REG_NUM_MM7 7
  332. #define REG_NUM_R10 10
  333. #define REG_NUM_R10B 10
  334. #define REG_NUM_R10D 10
  335. #define REG_NUM_R10W 10
  336. #define REG_NUM_R11 11
  337. #define REG_NUM_R11B 11
  338. #define REG_NUM_R11D 11
  339. #define REG_NUM_R11W 11
  340. #define REG_NUM_R12 12
  341. #define REG_NUM_R12B 12
  342. #define REG_NUM_R12D 12
  343. #define REG_NUM_R12W 12
  344. #define REG_NUM_R13 13
  345. #define REG_NUM_R13B 13
  346. #define REG_NUM_R13D 13
  347. #define REG_NUM_R13W 13
  348. #define REG_NUM_R14 14
  349. #define REG_NUM_R14B 14
  350. #define REG_NUM_R14D 14
  351. #define REG_NUM_R14W 14
  352. #define REG_NUM_R15 15
  353. #define REG_NUM_R15B 15
  354. #define REG_NUM_R15D 15
  355. #define REG_NUM_R15W 15
  356. #define REG_NUM_R8 8
  357. #define REG_NUM_R8B 8
  358. #define REG_NUM_R8D 8
  359. #define REG_NUM_R8W 8
  360. #define REG_NUM_R9 9
  361. #define REG_NUM_R9B 9
  362. #define REG_NUM_R9D 9
  363. #define REG_NUM_R9W 9
  364. #define REG_NUM_RAX 0
  365. #define REG_NUM_RBP 5
  366. #define REG_NUM_RBX 3
  367. #define REG_NUM_RCX 1
  368. #define REG_NUM_RDI 7
  369. #define REG_NUM_RDX 2
  370. #define REG_NUM_RSI 6
  371. #define REG_NUM_RSP 4
  372. #define REG_NUM_SEGR6 6
  373. #define REG_NUM_SEGR7 7
  374. #define REG_NUM_SI 6
  375. #define REG_NUM_SIL 6
  376. #define REG_NUM_SP 4
  377. #define REG_NUM_SPL 4
  378. #define REG_NUM_SS 2
  379. #define REG_NUM_ST0 0
  380. #define REG_NUM_ST1 1
  381. #define REG_NUM_ST2 2
  382. #define REG_NUM_ST3 3
  383. #define REG_NUM_ST4 4
  384. #define REG_NUM_ST5 5
  385. #define REG_NUM_ST6 6
  386. #define REG_NUM_ST7 7
  387. #define REG_NUM_TR0 0
  388. #define REG_NUM_TR1 1
  389. #define REG_NUM_TR2 2
  390. #define REG_NUM_TR3 3
  391. #define REG_NUM_TR4 4
  392. #define REG_NUM_TR5 5
  393. #define REG_NUM_TR6 6
  394. #define REG_NUM_TR7 7
  395. #define REG_NUM_XMM0 0
  396. #define REG_NUM_XMM1 1
  397. #define REG_NUM_XMM10 10
  398. #define REG_NUM_XMM11 11
  399. #define REG_NUM_XMM12 12
  400. #define REG_NUM_XMM13 13
  401. #define REG_NUM_XMM14 14
  402. #define REG_NUM_XMM15 15
  403. #define REG_NUM_XMM16 16
  404. #define REG_NUM_XMM17 17
  405. #define REG_NUM_XMM18 18
  406. #define REG_NUM_XMM19 19
  407. #define REG_NUM_XMM2 2
  408. #define REG_NUM_XMM20 20
  409. #define REG_NUM_XMM21 21
  410. #define REG_NUM_XMM22 22
  411. #define REG_NUM_XMM23 23
  412. #define REG_NUM_XMM24 24
  413. #define REG_NUM_XMM25 25
  414. #define REG_NUM_XMM26 26
  415. #define REG_NUM_XMM27 27
  416. #define REG_NUM_XMM28 28
  417. #define REG_NUM_XMM29 29
  418. #define REG_NUM_XMM3 3
  419. #define REG_NUM_XMM30 30
  420. #define REG_NUM_XMM31 31
  421. #define REG_NUM_XMM4 4
  422. #define REG_NUM_XMM5 5
  423. #define REG_NUM_XMM6 6
  424. #define REG_NUM_XMM7 7
  425. #define REG_NUM_XMM8 8
  426. #define REG_NUM_XMM9 9
  427. #define REG_NUM_YMM0 0
  428. #define REG_NUM_YMM1 1
  429. #define REG_NUM_YMM10 10
  430. #define REG_NUM_YMM11 11
  431. #define REG_NUM_YMM12 12
  432. #define REG_NUM_YMM13 13
  433. #define REG_NUM_YMM14 14
  434. #define REG_NUM_YMM15 15
  435. #define REG_NUM_YMM16 16
  436. #define REG_NUM_YMM17 17
  437. #define REG_NUM_YMM18 18
  438. #define REG_NUM_YMM19 19
  439. #define REG_NUM_YMM2 2
  440. #define REG_NUM_YMM20 20
  441. #define REG_NUM_YMM21 21
  442. #define REG_NUM_YMM22 22
  443. #define REG_NUM_YMM23 23
  444. #define REG_NUM_YMM24 24
  445. #define REG_NUM_YMM25 25
  446. #define REG_NUM_YMM26 26
  447. #define REG_NUM_YMM27 27
  448. #define REG_NUM_YMM28 28
  449. #define REG_NUM_YMM29 29
  450. #define REG_NUM_YMM3 3
  451. #define REG_NUM_YMM30 30
  452. #define REG_NUM_YMM31 31
  453. #define REG_NUM_YMM4 4
  454. #define REG_NUM_YMM5 5
  455. #define REG_NUM_YMM6 6
  456. #define REG_NUM_YMM7 7
  457. #define REG_NUM_YMM8 8
  458. #define REG_NUM_YMM9 9
  459. #define REG_NUM_ZMM0 0
  460. #define REG_NUM_ZMM1 1
  461. #define REG_NUM_ZMM10 10
  462. #define REG_NUM_ZMM11 11
  463. #define REG_NUM_ZMM12 12
  464. #define REG_NUM_ZMM13 13
  465. #define REG_NUM_ZMM14 14
  466. #define REG_NUM_ZMM15 15
  467. #define REG_NUM_ZMM16 16
  468. #define REG_NUM_ZMM17 17
  469. #define REG_NUM_ZMM18 18
  470. #define REG_NUM_ZMM19 19
  471. #define REG_NUM_ZMM2 2
  472. #define REG_NUM_ZMM20 20
  473. #define REG_NUM_ZMM21 21
  474. #define REG_NUM_ZMM22 22
  475. #define REG_NUM_ZMM23 23
  476. #define REG_NUM_ZMM24 24
  477. #define REG_NUM_ZMM25 25
  478. #define REG_NUM_ZMM26 26
  479. #define REG_NUM_ZMM27 27
  480. #define REG_NUM_ZMM28 28
  481. #define REG_NUM_ZMM29 29
  482. #define REG_NUM_ZMM3 3
  483. #define REG_NUM_ZMM30 30
  484. #define REG_NUM_ZMM31 31
  485. #define REG_NUM_ZMM4 4
  486. #define REG_NUM_ZMM5 5
  487. #define REG_NUM_ZMM6 6
  488. #define REG_NUM_ZMM7 7
  489. #define REG_NUM_ZMM8 8
  490. #define REG_NUM_ZMM9 9
  491. #endif /* NASM_REGS_H */