1 /* templates for various register related operations */
3 void OPPROTO glue(op_movl_A0,REGNAME)(void)
8 void OPPROTO glue(op_addl_A0,REGNAME)(void)
13 void OPPROTO glue(glue(op_addl_A0,REGNAME),_s1)(void)
18 void OPPROTO glue(glue(op_addl_A0,REGNAME),_s2)(void)
23 void OPPROTO glue(glue(op_addl_A0,REGNAME),_s3)(void)
28 void OPPROTO glue(op_movl_T0,REGNAME)(void)
33 void OPPROTO glue(op_movl_T1,REGNAME)(void)
38 void OPPROTO glue(op_movh_T0,REGNAME)(void)
43 void OPPROTO glue(op_movh_T1,REGNAME)(void)
48 void OPPROTO glue(glue(op_movl,REGNAME),_T0)(void)
53 void OPPROTO glue(glue(op_movl,REGNAME),_T1)(void)
58 void OPPROTO glue(glue(op_movl,REGNAME),_A0)(void)
63 /* NOTE: T0 high order bits are ignored */
64 void OPPROTO glue(glue(op_movw,REGNAME),_T0)(void)
66 REG = (REG & 0xffff0000) | (T0 & 0xffff);
69 /* NOTE: T0 high order bits are ignored */
70 void OPPROTO glue(glue(op_movw,REGNAME),_T1)(void)
72 REG = (REG & 0xffff0000) | (T1 & 0xffff);
75 /* NOTE: A0 high order bits are ignored */
76 void OPPROTO glue(glue(op_movw,REGNAME),_A0)(void)
78 REG = (REG & 0xffff0000) | (A0 & 0xffff);
81 /* NOTE: T0 high order bits are ignored */
82 void OPPROTO glue(glue(op_movb,REGNAME),_T0)(void)
84 REG = (REG & 0xffffff00) | (T0 & 0xff);
87 /* NOTE: T0 high order bits are ignored */
88 void OPPROTO glue(glue(op_movh,REGNAME),_T0)(void)
90 REG = (REG & 0xffff00ff) | ((T0 & 0xff) << 8);
93 /* NOTE: T1 high order bits are ignored */
94 void OPPROTO glue(glue(op_movb,REGNAME),_T1)(void)
96 REG = (REG & 0xffffff00) | (T1 & 0xff);
99 /* NOTE: T1 high order bits are ignored */
100 void OPPROTO glue(glue(op_movh,REGNAME),_T1)(void)
102 REG = (REG & 0xffff00ff) | ((T1 & 0xff) << 8);