emitnxtensawin.c 598 B

1234567891011121314151617181920212223
  1. // Xtensa-Windowed specific stuff
  2. #include "py/mpconfig.h"
  3. #if MICROPY_EMIT_XTENSAWIN
  4. // this is defined so that the assembler exports generic assembler API macros
  5. #define GENERIC_ASM_API (1)
  6. #define GENERIC_ASM_API_WIN (1)
  7. #include "py/asmxtensa.h"
  8. // Word indices of REG_LOCAL_x in nlr_buf_t
  9. #define NLR_BUF_IDX_LOCAL_1 (2 + 4) // a4
  10. #define NLR_BUF_IDX_LOCAL_2 (2 + 5) // a5
  11. #define NLR_BUF_IDX_LOCAL_3 (2 + 6) // a6
  12. #define N_NLR_SETJMP (1)
  13. #define N_PRELUDE_AS_BYTES_OBJ (1)
  14. #define N_XTENSAWIN (1)
  15. #define EXPORT_FUN(name) emit_native_xtensawin_##name
  16. #include "py/emitnative.c"
  17. #endif