root / target-sh4 / op_mem.c @ fdf9b3e8
History | View | Annotate | Download (1.5 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 |
} |