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