#ifndef TM_H
#pragma once
#define TM_H

#define LittleEndian
#define NAMES_HAVE_UNDERSCORE

#ifdef NAMES_HAVE_UNDERSCORE
#define UNDERSCORE "_"
#else
#define UNDERSCORE ""
#endif

#define JUMP(label) asm(" jbr " label)
#define PRIM_HANDLER(exname,label) \
  asm(" .long " UNDERSCORE #exname); asm(" .word 1"); asm(UNDERSCORE label ":")

#define CONT_SAVE_REGS 13 /* r2-sp */
/*#define CONT_SAVE_FP(H) (char*)(H)->save_regs[11]*/
#define CONT_SAVE_SP(H) (char*)(H)->save_regs[12]

#endif
