--- a/src/aica/armmem.c Mon Jul 14 07:44:42 2008 +0000 +++ b/src/aica/armmem.c Wed Aug 13 10:27:49 2008 +0000 @@ -20,6 +20,7 @@ #include "dream.h" #include "mem.h" #include "aica.h" +#include "armcore.h" unsigned char *arm_mem = NULL; unsigned char *arm_mem_scratch = NULL; @@ -58,8 +59,8 @@ return *(int32_t *)(arm_mem_scratch + addr - 0x00803000); } } - ERROR( "Attempted long read to undefined page: %08X", - addr ); + ERROR( "Attempted long read to undefined page: %08X at %08X", + addr, armr.r[15] ); /* Undefined memory */ return 0; } @@ -119,7 +120,14 @@ return val; // Can't happen, but make gcc happy } } - +void arm_write_word( uint32_t addr, uint32_t value ) +{ + if( addr < 0x00200000 ) { + *(uint16_t *)(arm_mem + addr) = (uint16_t)value; + } else { + + } +} void arm_write_byte( uint32_t addr, uint32_t value ) { if( addr < 0x00200000 ) {