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 echo Successfully done. Set 64MB as the console simulated mem size. 50 goto NDEVDONE 51 52:NDEVSET128 53 %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI2 -o %REVOLUTION_SDK_ROOT%\x86\bin\bi2.bin 44 0x8000000 54 echo Successfully done. Set 128MB as the console simulated mem size. 55 goto NDEVDONE 56 57:NDEVSET0 58 %REVOLUTION_SDK_ROOT%\x86\bin\tickleBI2 -o %REVOLUTION_SDK_ROOT%\x86\bin\bi2.bin 44 0x0 59 echo Successfully done. Physical memory size is considered as the console simulated mem size. 60 goto NDEVDONE 61 62:NDEVDONE 63 64:ENDWARNING 65 66echo ********************************************************************** 67echo * If you make master data, you must execute ndrun before you do so!! * 68echo ********************************************************************** 69 70:end 71 72