8 arm_mem = mem_get_region_by_name( MEM_REGION_AUDIO );
12 int32_t arm_read_long( uint32_t addr ) {
13 if( addr < 0x00200000 ) {
14 return *(int32_t *)(arm_mem + addr);
16 } else if( addr >= 0x00800000 && addr <= 0x00803000 ) {
17 /* Sound registers / scratch ram */
19 /* Undefined memory */
20 ERROR( "Attempted long read to undefined page: %08X",
26 int16_t arm_read_word( uint32_t addr ) {
27 if( addr < 0x00200000 ) {
28 return *(int16_t *)(arm_mem + addr);
31 /* Undefined memory */
32 ERROR( "Attempted word read to undefined page: %08X",
39 int8_t arm_read_byte( uint32_t addr ) {
40 if( addr < 0x00200000 ) {
41 return *(int8_t *)(arm_mem + addr);
44 /* Undefined memory */
45 ERROR( "Attempted byte read to undefined page: %08X",
51 uint32_t arm_read_long_user( uint32_t addr ) {
55 uint32_t arm_read_byte_user( uint32_t addr ) {
.