Fix memory size for m500

This commit is contained in:
meepingsnesroms
2019-11-25 21:14:09 -08:00
parent 126b2cf20f
commit c6df0303c8
2 changed files with 2 additions and 3 deletions

View File

@@ -345,7 +345,7 @@ static void updateCsdAddressLines(void){
dbvzChipSelects[DBVZ_CHIP_DX_RAM].mask |= 0x00800000;
//address line 22 is enabled
if((sdctrl & 0x0030) == 0x0010)
if(palmEmulatingM500 || (sdctrl & 0x0030) == 0x0010)
dbvzChipSelects[DBVZ_CHIP_DX_RAM].mask |= 0x00400000;
}
else{

View File

@@ -21,8 +21,7 @@ def makeString(location):
return string
#scan from ROM start to ROM end
for func in idautils.Functions(0x10000000, 0x103D7C00):
for func in idautils.Functions():
str = makeString(idc.get_func_attr(func, FUNCATTR_END) + 1) + ('_%X' % idc.get_func_attr(func, FUNCATTR_START))
idc.set_name(idc.get_func_attr(func, FUNCATTR_START), str, SN_NOCHECK)
print str