root / target-sh4 / op_mem.c @ ed23fbd9
History | View | Annotate | Download (1.9 kB)
1 |
/*
|
---|---|
2 |
* SH4 emulation
|
3 |
*
|
4 |
* Copyright (c) 2005 Samuel Tardieu
|
5 |
*
|
6 |
* This library is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU Lesser General Public
|
8 |
* License as published by the Free Software Foundation; either
|
9 |
* version 2 of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This library is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 |
* Lesser General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU Lesser General Public
|
17 |
* License along with this library; if not, write to the Free Software
|
18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 |
*/
|
20 |
void glue(op_ldb_T0_T0, MEMSUFFIX) (void) { |
21 |
T0 = glue(ldsb, MEMSUFFIX) (T0); |
22 |
RETURN(); |
23 |
} |
24 |
|
25 |
void glue(op_ldub_T0_T0, MEMSUFFIX) (void) { |
26 |
T0 = glue(ldub, MEMSUFFIX) (T0); |
27 |
RETURN(); |
28 |
} |
29 |
|
30 |
void glue(op_stb_T0_T1, MEMSUFFIX) (void) { |
31 |
glue(stb, MEMSUFFIX) (T1, T0); |
32 |
RETURN(); |
33 |
} |
34 |
|
35 |
void glue(op_ldw_T0_T0, MEMSUFFIX) (void) { |
36 |
T0 = glue(ldsw, MEMSUFFIX) (T0); |
37 |
RETURN(); |
38 |
} |
39 |
|
40 |
void glue(op_lduw_T0_T0, MEMSUFFIX) (void) { |
41 |
T0 = glue(lduw, MEMSUFFIX) (T0); |
42 |
RETURN(); |
43 |
} |
44 |
|
45 |
void glue(op_stw_T0_T1, MEMSUFFIX) (void) { |
46 |
glue(stw, MEMSUFFIX) (T1, T0); |
47 |
RETURN(); |
48 |
} |
49 |
|
50 |
void glue(op_ldl_T0_T0, MEMSUFFIX) (void) { |
51 |
T0 = glue(ldl, MEMSUFFIX) (T0); |
52 |
RETURN(); |
53 |
} |
54 |
|
55 |
void glue(op_stl_T0_T1, MEMSUFFIX) (void) { |
56 |
glue(stl, MEMSUFFIX) (T1, T0); |
57 |
RETURN(); |
58 |
} |
59 |
|
60 |
void glue(op_ldfl_T0_FT0, MEMSUFFIX) (void) { |
61 |
FT0 = glue(ldfl, MEMSUFFIX) (T0); |
62 |
RETURN(); |
63 |
} |
64 |
|
65 |
void glue(op_stfl_FT0_T1, MEMSUFFIX) (void) { |
66 |
glue(stfl, MEMSUFFIX) (T1, FT0); |
67 |
RETURN(); |
68 |
} |
69 |
|
70 |
void glue(op_ldfq_T0_DT0, MEMSUFFIX) (void) { |
71 |
DT0 = glue(ldfq, MEMSUFFIX) (T0); |
72 |
RETURN(); |
73 |
} |
74 |
|
75 |
void glue(op_stfq_DT0_T1, MEMSUFFIX) (void) { |
76 |
glue(stfq, MEMSUFFIX) (T1, DT0); |
77 |
RETURN(); |
78 |
} |