trunk/src/emu/cpu/sh4/sh4.c
| r31245 | r31246 | |
| 228 | 228 | } |
| 229 | 229 | #endif |
| 230 | 230 | |
| 231 | | UINT8 sh34_base_device::RB(offs_t A) |
| 231 | inline UINT8 sh34_base_device::RB(offs_t A) |
| 232 | 232 | { |
| 233 | 233 | if (A >= 0xe0000000) |
| 234 | 234 | return m_program->read_byte(A); |
| r31245 | r31246 | |
| 236 | 236 | return m_program->read_byte(A & AM); |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | | UINT16 sh34_base_device::RW(offs_t A) |
| 239 | inline UINT16 sh34_base_device::RW(offs_t A) |
| 240 | 240 | { |
| 241 | 241 | if (A >= 0xe0000000) |
| 242 | 242 | return m_program->read_word(A); |
| r31245 | r31246 | |
| 244 | 244 | return m_program->read_word(A & AM); |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | | UINT32 sh34_base_device::RL(offs_t A) |
| 247 | inline UINT32 sh34_base_device::RL(offs_t A) |
| 248 | 248 | { |
| 249 | 249 | if (A >= 0xe0000000) |
| 250 | 250 | return m_program->read_dword(A); |
| r31245 | r31246 | |
| 252 | 252 | return m_program->read_dword(A & AM); |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | | void sh34_base_device::WB(offs_t A, UINT8 V) |
| 255 | inline void sh34_base_device::WB(offs_t A, UINT8 V) |
| 256 | 256 | { |
| 257 | 257 | if (A >= 0xe0000000) |
| 258 | 258 | { |
| r31245 | r31246 | |
| 263 | 263 | m_program->write_byte(A & AM,V); |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | | void sh34_base_device::WW(offs_t A, UINT16 V) |
| 266 | inline void sh34_base_device::WW(offs_t A, UINT16 V) |
| 267 | 267 | { |
| 268 | 268 | if (A >= 0xe0000000) |
| 269 | 269 | { |
| r31245 | r31246 | |
| 274 | 274 | m_program->write_word(A & AM,V); |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | | void sh34_base_device::WL(offs_t A, UINT32 V) |
| 277 | inline void sh34_base_device::WL(offs_t A, UINT32 V) |
| 278 | 278 | { |
| 279 | 279 | if (A >= 0xe0000000) |
| 280 | 280 | { |