🕊️🕊️🕊️~ 9529p
关注数: 49 粉丝数: 83 发帖数: 3,739 关注贴吧数: 71
powershell脚本文件问题 我这边有一份把2进制程序文件转换成16进制的并且按照要求拼接的脚本文件,不知道有没有大佬能看得懂,会写的,我需要把这个稍微修改下,但是修改以后不知道能不能正常运行,如果有老哥能看得懂,并且能修改,可以私我下,我想要学学咋修改:下面贴脚本文件代码: @echo off set bck_main_fimware_file=.\ota_gen\flash_boot.main.old.txt set old_main_fimware_file=flash_boot.main.txt del flash*.txt del flash*.bin if exist laki_lib2.txt ( del laki_lib2.txt ) if exist api_utility.txt ( del api_utility.txt ) if exist user_app.txt ( del user_app.txt ) if exist laki_sldm_lib.txt ( del laki_sldm_lib.txt ) if exist user_app.bin ( del user_app.bin ) %自动搜索并获得主程序入口地址% echo Capture the entrance addr of user_app! findstr /C:"user_app " ..\..\Listings\laki_sdk.map > 1.txt for /f "tokens=2" %%i in (1.txt ) do ( echo %%i > 2.txt ) sed "1s/0x//" 2.txt > 3.txt set /p mainEntryAddr=< 3.txt echo Entrance addr of user_app is %mainEntryAddr% echo= SET FlashAddrPara=0 SET SourceFile1=first_page.txt SET SourceFile2=ER$$.ARM.__at_0x500000 %自动搜索并获得主程序bin文件 -- sourcefile3 和 sourcefile4% echo "Capture files number which named ER$$.ARM.__at_0x500* !" dir /b ER$$.ARM.__at_0x500* | find /c /v "500000" > 4.txt set /p file_num=<4.txt echo Total Files which named ER$$.ARM.__at_0x500* are %file_num% ! echo= if %file_num% GTR 2 ( goto ERR_PROCEDURE1 ) dir /b ER$$.ARM.__at_0x500* | find /v "500000" > 5.txt (set /p SourceFile3=&set /p SourceFile4=)<5.txt echo Capture the file name of api_utility and user_app! echo API_UTILITY file name is %SourceFile3% echo USER_APP file name is %SourceFile4% echo= del 1.txt 2.txt 3.txt 4.txt 5.txt SET SourceFile5=ER$$.ARM.__at_0x400400 SET SLDM_OutFile=laki_sldm_lib.txt SET SLDM_exist=0 echo "Scan whether all necessary files are exited!" if not exist %SourceFile1% ( goto SF1 ) else ( echo %SourceFile1% is exist! ) if not exist %SourceFile2% ( goto SF2 ) else ( echo %SourceFile2% is exist! ) if not exist %SourceFile3% ( goto SF3 ) else ( echo %SourceFile3% is exist! ) if not exist %SourceFile4% ( goto SF4 ) else ( echo %SourceFile4% is exist! ) echo= echo Merge HEX files: %SourceFile2% %SourceFile3% %SourceFile4% to user_app.bin type %SourceFile2% %SourceFile3% %SourceFile4% > user_app.bin echo= echo "Scan whether files of SLDM lib is existed!" if not exist %SourceFile5% ( echo %SourceFile5% is not exist! echo SLDM library is not used in current precedure! Ignored! ) else ( echo SLDM library is used in current precedure! echo Generate TXT file of SLDM lib! bin2txt.sldm_lib.2ndv.exe %SourceFile5% %SLDM_OutFile% ) echo= echo Generate TXT of main! bin2txt.exe %mainEntryAddr% 0 del ER* %合并主函数文件和sldm库文件% SET txt_inputFile=flash_boot.txt SET bin_outputFile=flash_boot.bin echo= if exist %SLDM_OutFile% ( echo SLDM library is used, merge main precedure and sldm library together! ren flash_boot.txt flash_boot.main.txt copy flash_boot.main.txt+%SLDM_OutFile% flash_boot.txt sed -i "1s/00/01/1" flash_boot.txt ) else ( echo SLDM library is not used in current precedure! copy flash_boot.txt flash_boot.main.txt ) echo= if not exist flash_boot.main.txt ( echo ERR: flash_boot.main.txt is not exist! ) else ( echo Generate bin file of flash_boot.main.txt! txt2bin.exe flash_boot.main.txt flash_boot.main.bin ) if not exist flash_boot.txt ( goto SF5 ) else ( echo Generate bin file of flash_boot.txt! txt2bin.exe %txt_inputFile% %bin_outputFile% echo Both TXT and BIN format of fimware are generated! echo= echo Notes of results: echo Files - flash_boot.txt/flash_boot.bin include main precedure and sldm library! flash_boot.txt=flash_boot.bin! echo Files - flash_boot.main.txt/flash_boot.main.bin has main precedure only! flash_boot.main.txt=flash_boot.main.bin! goto end ) :SF5 echo %txt_inputFile% is not exist! goto end :SF1 echo %SourceFile1% is not exist! goto end :SF2 echo %SourceFile2% is not exist! goto end :SF3 echo %SourceFile3% is not exist! goto end :SF4 echo %SourceFile4% is not exist! goto end :ERR_PROCEDURE1 del ER* 1.txt 2.txt 3.txt 4.txt echo "Total files which named ER$$.ARM.__at_0x500* are larger than 2. Del ER* first first!" echo Please re-run build and generate fimware again! echo goto end :end del user_app.bin pause exit
【一帖成名】新区两次十连,25块就能办到 没图我说个啥!以前看一帖子说是开服不必快去进游戏,因为jjc是安入住时间排名的~我说这是纯粹扯淡。jjc开服胜场在200以上的都是npc,老玩家都知道别喷……给新玩家科普下而已。 废话不多讲,开始来十连!…………………… 大前提是你得有25元或者360币~(个人用起来后者比较快!如果你们硬说我是托儿,那就略过下面一段话吧) 一般是在上午十点开服~提前个五分钟一直在你的手机上进游戏退游戏~直到新服刷新出来了~一般是在五十七分钟时。速度看完开场动画~拿到火女小黑之后可以看看自己的id顺序是从10000开始的。之后就是冲月卡钻石手抽了。不管是给个什么三星英雄都直接上阵。具体什么看自己脸,我抽过一次斧王,一次女王,两次电棍,拍拍,乐器,黑鸟还有两次一姐。()大家尽量别学我追着新服跑,又累又都玩不好~ 接下来就是马不停蹄的刷副本~领任务。领完小鹿之后果断把小黑扔了~之前有帖子评论过五小强最先丢的就他~个人等级到十级之后开通竞技场~不着急打~把等级提升到12级这时候你得英雄等级上线是17级这个细节谁注意了?记得举个爪!之后就是提升英雄等级了~可是怎么提升?不是靠嘴巴说他就升级的~这个时候一定别忘记自己是vip3,扫荡吧~不知道扫哪个?那妥妥的第一关最后一个骷髅王,可以拿到鞋子~这道具不嫌多,再多鞋子到最后你也会发现不够穿的~别不舍得用你剩下的下次钻石,因为等会你会得到你想想不到多的钻石! 拿着你得17级船长,宙斯,火女,小鹿,跟你的首抽三星~进竞技场吧~要保证要保证宙斯火女到绿色~船长用前几关的东西必到绿色。手抽能绿尽量绿~多个技能可不是盖的~再就是技能点的问题。到了这个时候手慢的同学应该是十一点十多分~除了那些真土豪~上来就各种三星的扫荡竞技场的~你应该是这里边的佼佼者了~战斗力在1400到1600之间了吧~除了那俩彪呼呼的英雄一姐跟风行你得战斗力会爆表到1800以上有那俩活妥妥的十二点前排名在 前十如图!揍他们的!挑那些胜场200+的~ T少的脆皮队干!遇到类似剑圣一姐斧头的就换~换到最合适的就干~把握好五次机会你得排名会在100名到200名之间!钻石总数达到2200到2300了吧?继续提升自己的战斗力!十二点之前在买五次竞技场的资格!继续挑着那些弱队揍!如果~我是说如果,你得排名在前十,那妥妥的足够两次首抽了~因为百名以内,提升名次奖励太多元宝了~具体多少我也没算,等数据帝揭晓吧!第三升第二就470+钻石!第一名是个土豪,没法打。 奖励的这些钻石足够你嚯嚯的了吧?开心了吧?但别忘记你是花了25块钱的!这可是一包玉溪,两包半泰山的钱!可是就是手贱停不下来!上个区有个一姐了~没能够第两次钻石十连~就单抽了~结果你们懂得~给了一堆紫色装备有个xx用啊!?这不又开新区了,把最后的那25个360币充了~令我费解的是,钻石首抽时候失去链接~在上线之后就没钻石了,打开背包一看我立马开心了!又一只一姐!来!干吧!
1 下一页