x64Reg.h 954 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Copyright 2016 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. namespace Gen
  5. {
  6. enum X64Reg
  7. {
  8. EAX = 0,
  9. EBX = 3,
  10. ECX = 1,
  11. EDX = 2,
  12. ESI = 6,
  13. EDI = 7,
  14. EBP = 5,
  15. ESP = 4,
  16. RAX = 0,
  17. RBX = 3,
  18. RCX = 1,
  19. RDX = 2,
  20. RSI = 6,
  21. RDI = 7,
  22. RBP = 5,
  23. RSP = 4,
  24. R8 = 8,
  25. R9 = 9,
  26. R10 = 10,
  27. R11 = 11,
  28. R12 = 12,
  29. R13 = 13,
  30. R14 = 14,
  31. R15 = 15,
  32. AL = 0,
  33. BL = 3,
  34. CL = 1,
  35. DL = 2,
  36. SIL = 6,
  37. DIL = 7,
  38. BPL = 5,
  39. SPL = 4,
  40. AH = 0x104,
  41. BH = 0x107,
  42. CH = 0x105,
  43. DH = 0x106,
  44. AX = 0,
  45. BX = 3,
  46. CX = 1,
  47. DX = 2,
  48. SI = 6,
  49. DI = 7,
  50. BP = 5,
  51. SP = 4,
  52. XMM0 = 0,
  53. XMM1,
  54. XMM2,
  55. XMM3,
  56. XMM4,
  57. XMM5,
  58. XMM6,
  59. XMM7,
  60. XMM8,
  61. XMM9,
  62. XMM10,
  63. XMM11,
  64. XMM12,
  65. XMM13,
  66. XMM14,
  67. XMM15,
  68. YMM0 = 0,
  69. YMM1,
  70. YMM2,
  71. YMM3,
  72. YMM4,
  73. YMM5,
  74. YMM6,
  75. YMM7,
  76. YMM8,
  77. YMM9,
  78. YMM10,
  79. YMM11,
  80. YMM12,
  81. YMM13,
  82. YMM14,
  83. YMM15,
  84. INVALID_REG = 0xFFFFFFFF
  85. };
  86. } // namespace Gen