win64-nasm.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* This file auto-generated from standard.mac by genmacro.c - don't edit it */
  2. #include <stddef.h>
  3. static const char *win64_nasm_stdmac[] = {
  4. "%imacro export 1+.nolist",
  5. "[export %1]",
  6. "%endmacro",
  7. "%imacro proc_frame 1+.nolist",
  8. "%1:",
  9. "[proc_frame %1]",
  10. "%endmacro",
  11. "%imacro endproc_frame 0.nolist",
  12. "[endproc_frame]",
  13. "%endmacro",
  14. "%imacro push_reg 1",
  15. "push %1",
  16. "[pushreg %1]",
  17. "%endmacro",
  18. "%imacro rex_push_reg 1",
  19. "db 0x48",
  20. "push %1",
  21. "[pushreg %1]",
  22. "%endmacro",
  23. "%imacro push_eflags 0",
  24. "pushfq",
  25. "[allocstack 8]",
  26. "%endmacro",
  27. "%imacro rex_push_eflags 0",
  28. "db 0x48",
  29. "pushfq",
  30. "[allocstack 8]",
  31. "%endmacro",
  32. "%imacro alloc_stack 1",
  33. "sub rsp, %1",
  34. "[allocstack %1]",
  35. "%endmacro",
  36. "%imacro save_reg 2",
  37. "mov [rsp+%2], %1",
  38. "[savereg %1 %2]",
  39. "%endmacro",
  40. "%imacro save_xmm128 2",
  41. "movdqa [rsp+%2], %1",
  42. "[savexmm128 %1 %2]",
  43. "%endmacro",
  44. "%imacro push_frame 0-1.nolist",
  45. "[pushframe %1]",
  46. "%endmacro",
  47. "%imacro set_frame 1-2",
  48. "%if %0==1",
  49. "mov %1, rsp",
  50. "%else",
  51. "lea %1, [rsp+%2]",
  52. "%endif",
  53. "[setframe %1 %2]",
  54. "%endmacro",
  55. "%imacro end_prolog 0.nolist",
  56. "[endprolog]",
  57. "%endmacro",
  58. "%imacro end_prologue 0.nolist",
  59. "[endprolog]",
  60. "%endmacro",
  61. NULL
  62. };