[Scummvm-cvs-logs] SF.net SVN: scummvm:[54325] scummvm/trunk/backends/platform/ds/arm9

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Nov 18 18:01:30 CET 2010


Revision: 54325
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54325&view=rev
Author:   fingolfin
Date:     2010-11-18 17:01:30 +0000 (Thu, 18 Nov 2010)

Log Message:
-----------
DS: Port changes from 1.2.0 branch to trunk

Modified Paths:
--------------
    scummvm/trunk/backends/platform/ds/arm9/dist/readme_ds.txt
    scummvm/trunk/backends/platform/ds/arm9/makefile
    scummvm/trunk/backends/platform/ds/arm9/source/dsmain.cpp
    scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
    scummvm/trunk/backends/platform/ds/arm9/source/wordcompletion.cpp

Modified: scummvm/trunk/backends/platform/ds/arm9/dist/readme_ds.txt
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/dist/readme_ds.txt	2010-11-18 16:58:25 UTC (rev 54324)
+++ scummvm/trunk/backends/platform/ds/arm9/dist/readme_ds.txt	2010-11-18 17:01:30 UTC (rev 54325)
@@ -41,6 +41,10 @@
       What's New?
       ------------------------------------------------------------------------
 
+ScummVM DS 1.2.0
+
+ * New game supported: Fascination
+
 ScummVM DS 1.1.1
 
  * Bugfix release: no new features
@@ -323,7 +327,7 @@
       ------------------------------------------------------------------------
 
 I'm glad you asked. Here is a list of the compatible games in version
-1.1.1. Demo versions of the games listed should work too.
+1.2.0. Demo versions of the games listed should work too.
 
 Flight of the Amazon Queen, Beneath a Steel Sky, and Lure of the
 Temptress have generously been released as freeware by the original
@@ -392,6 +396,8 @@
 
 Goblins 3                                 D
 
+Fascination 				  D     This game is untested on the DS
+
 Ween: The Prophecy                        D
 
 Bargon Attack                             D

Modified: scummvm/trunk/backends/platform/ds/arm9/makefile
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/makefile	2010-11-18 16:58:25 UTC (rev 54324)
+++ scummvm/trunk/backends/platform/ds/arm9/makefile	2010-11-18 17:01:30 UTC (rev 54325)
@@ -104,6 +104,10 @@
 # I actually had to use
 # ./configure --host=arm-elf --enable-speed --enable-sso -enable-fpm=arm CFLAGS='-specs=ds_arm9.specs -mthumb-interwork' LDFLAGS='C:/Progra~1/devkitpro/libnds/lib/libnds9.a' --disable-shared --disable-debugging
 
+
+# handy command to find where the big symbols are in the ELF:
+# arm-eabi-nm -S --radix=d --demangle scummvm.elf |sort -n -r --key=2 |less
+
 ARM = 1
 USE_ARM_SOUND_ASM = 1
 USE_ARM_COSTUME_ASM = 1
@@ -241,7 +245,7 @@
 	DEFINES += -DUSE_MAD
 endif
 
-DEFINES += -DREDUCE_MEMORY_USAGE
+DEFINES += -DREDUCE_MEMORY_USAGE -DDISABLE_DEBUGGER -DUSE_TEXT_CONSOLE -DDISABLE_MASS_ADD -DDISABLE_NES_APU
 
 LDFLAGS = -specs=ds_arm9.specs -mthumb-interwork -mno-fpu -Wl,-Map,map.txt -Wl,--gc-sections
 
@@ -345,7 +349,7 @@
 
 ndsall:
 	@[ -d $(BUILD) ] || mkdir -p $(BUILD)
-	make -C ./$(BUILD) -f ../makefile scummvm.nds scummvm.ds.gba
+	$(MAKE) -C ./$(BUILD) -f ../makefile scummvm.nds scummvm.ds.gba
 
 include $(srcdir)/Makefile.common
 

Modified: scummvm/trunk/backends/platform/ds/arm9/source/dsmain.cpp
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/source/dsmain.cpp	2010-11-18 16:58:25 UTC (rev 54324)
+++ scummvm/trunk/backends/platform/ds/arm9/source/dsmain.cpp	2010-11-18 17:01:30 UTC (rev 54325)
@@ -2788,7 +2788,7 @@
 // Fast Ram
 ///////////////////
 
-#define FAST_RAM_SIZE (24000)
+#define FAST_RAM_SIZE (22500)
 #define ITCM_DATA	__attribute__((section(".itcm")))
 
 u8 *fastRamPointer;

Modified: scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.c	2010-11-18 16:58:25 UTC (rev 54324)
+++ scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.c	2010-11-18 17:01:30 UTC (rev 54325)
@@ -194,7 +194,8 @@
 // available: IWRAM on NDS ARM7, EWRAM on NDS ARM9 and GBA
 
 // Files
-_VARS_IN_RAM FAT_FILE openFiles[MAX_FILES_OPEN];
+FAT_FILE openFiles[MAX_FILES_OPEN] __attribute__((section(".itcm")));
+//_VARS_IN_RAM
 
 // Long File names
 _VARS_IN_RAM char lfnName[MAX_FILENAME_LENGTH];

Modified: scummvm/trunk/backends/platform/ds/arm9/source/wordcompletion.cpp
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/source/wordcompletion.cpp	2010-11-18 16:58:25 UTC (rev 54324)
+++ scummvm/trunk/backends/platform/ds/arm9/source/wordcompletion.cpp	2010-11-18 17:01:30 UTC (rev 54325)
@@ -30,11 +30,11 @@
 #ifdef ENABLE_AGI
 
 namespace DS {
-// Default dictionary is about 64Kb, so 128Kb should be enough for future expansion
-#define WORD_BUFFER_SIZE (128 * 1024)
+// Default dictionary is about 64Kb, so 96Kb should be enough for future expansion
+#define WORD_BUFFER_SIZE (96 * 1024)
 
 // Default dictionary has ~8000 words
-#define MAX_WORD_COUNT 16000
+#define MAX_WORD_COUNT 12000
 
 char wordBuffer[WORD_BUFFER_SIZE];
 int wordBufferPos = 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list