1@echo off 2 3if "%1" == "" goto help 4if "%NDEV%" NEQ "" goto NDEV 5 6echo NDEV is not found. Do nothing and exit. 7goto end 8 9:help 10echo usage: setsmem2size 64 11echo usage: setsmem2size 128 12echo Sets console simulated MEM2 size. Either 64MB or 128MB is set as the console simulated memory size. 13goto end 14 15:NDEV 16 echo NDEV detected 17 18 if "%1" == "64" ( 19 goto NDEVSET64 20 ) 21 22 if "%1" == "128" ( 23 goto NDEVSET128 24 ) 25 26 if "%1" == "0x4000000" ( 27 goto NDEVSET64 28 ) 29 30 if "%1" == "0x8000000" ( 31 goto NDEVSET128 32 ) 33 34 if "%1" == "0" ( 35 goto NDEVSET0 36 ) 37 38 if "%1" == "0x0" ( 39 goto NDEVSET0 40 ) 41 42 echo usage: setsmem2size 64 43 echo usage: setsmem2size 128 44 echo Sets console simulated MEM2 size. Either 64MB or 128MB is set as the console simulated memory size. 45 goto end 46 47:NDEVSET64 48 %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI2 -o %REVOLUTION_SDK_ROOT%\x86\bin\bi2.bin 44 0x4000000 49 if errorlevel 1 goto NDEVFAILED 50 echo Successfully done. Set 64MB as the console simulated mem size. 51 goto NDEVDONE 52 53:NDEVSET128 54 %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI2 -o %REVOLUTION_SDK_ROOT%\x86\bin\bi2.bin 44 0x8000000 55 if errorlevel 1 goto NDEVFAILED 56 echo Successfully done. Set 128MB as the console simulated mem size. 57 goto NDEVDONE 58 59:NDEVSET0 60 %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI2 -o %REVOLUTION_SDK_ROOT%\x86\bin\bi2.bin 44 0x0 61 if errorlevel 1 goto NDEVFAILED 62 echo Successfully done. Physical memory size is considered as the console simulated mem size. 63 goto NDEVDONE 64 65:NDEVDONE 66 goto end 67 68:NDEVFAILED 69 echo Failed to set the console simulated mem size. 70 goto end 71 72:ENDWARNING 73 74echo ********************************************************************** 75echo * If you make master data, you must execute ndrun before you do so!! * 76echo ********************************************************************** 77 78:end 79 80