new memory handling, but asm and mappers need update.

Some cleanup and magic bit removal as a bonus.


git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@768 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-09-02 16:05:54 +00:00
parent e0e9248c33
commit 4182d35d5d
5 changed files with 10 additions and 5 deletions

View file

@ -48,7 +48,7 @@ mkdirs:
# deps
pico/carthw/svp/compiler.o : ../../pico/carthw/svp/ssp16.o ../../pico/carthw/svp/gen_arm.c
pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h
pico/memory.o pico/cd/memory.o : ../../pico/memory_cmn.c ../../pico/pico_int.h
pico/memory.o pico/cd/memory.o : ../../pico/pico_int.h ../../pico/memory.h
# build Cyclone
../../cpu/Cyclone/proj/Cyclone.s:

View file

@ -989,7 +989,8 @@ int emu_save_load_game(int load, int sram)
}
} else {
sram_size = SRam.end-SRam.start+1;
if(Pico.m.sram_reg & 4) sram_size=0x2000;
if (Pico.m.sram_status & SRS_EEPROM)
sram_size = 0x2000;
sram_data = SRam.data;
}
if (!sram_data) return 0; // SRam forcefully disabled for this game

View file

@ -1,7 +1,11 @@
platform/common/menu.o : revision.h
revision.h: FORCE
ifndef NOREVISION
@echo "#define REVISION \"`svn info -r HEAD | grep Revision | cut -c 11-`\"" > /tmp/r.tmp
else
@echo "#define REVISION \"0\"" > /tmp/r.tmp
endif
@diff -q $@ /tmp/r.tmp > /dev/null 2>&1 || mv -f /tmp/r.tmp $@
FORCE: