?login_element?

Subversion Repositories NedoOS

Rev

Rev 1770 | Blame | Compare with Previous | Last modification | View Log | Download

  1. rem ёъЁшяЄ ёсюЁъш яЁюхъЄр
  2.  
  3. if not defined output goto end
  4. if %output%=="" goto end
  5. if %title%=="" goto end
  6.  
  7. set error=1
  8.  
  9. PATH=..\_sdk\tools\sdcc\bin;..\_sdk;%PATH%
  10. set temp=_temp_
  11.  
  12. rem ёючфр╕ь тЁхьхээє■ фшЁхъЄюЁш■ фы  ъюьяшы Ўшш
  13.  
  14. if not exist %temp% mkdir %temp%
  15.  
  16. rem ёючфр╕ь ёяшёюъ ярышЄЁ
  17.  
  18. set palette._dummy_=:
  19.  
  20. echo rem palette>%temp%\palette.lst
  21. FOR /F "tokens=2* delims=.=" %%A IN ('SET palette') DO ECHO %%B>>%temp%\palette.lst
  22.  
  23. rem ёючфр╕ь ёяшёюъ шчюсЁрцхэшщ
  24.  
  25. set image._dummy_=:
  26.  
  27. echo rem image>%temp%\image.lst
  28. FOR /F "tokens=2* delims=.=" %%A IN ('SET image') DO ECHO %%B>>%temp%\image.lst
  29.  
  30. rem ёючфр╕ь ёяшёюъ ёяЁрщЄют
  31.  
  32. set sprite._dummy_=:
  33.  
  34. echo rem sprite>%temp%\sprite.lst
  35. FOR /F "tokens=2* delims=.=" %%A IN ('SET sprite') DO ECHO %%B>>%temp%\sprite.lst
  36.  
  37. rem ёючфр╕ь ёяшёюъ ьєч√ъш
  38.  
  39. set music._dummy_=:
  40.  
  41. echo rem music>%temp%\music.lst
  42. for /F "tokens=2* delims=.=" %%a in ('set music') do echo %%b>>%temp%\music.lst
  43.  
  44. rem ёючфр╕ь ёяшёюъ ё¤ьяыют
  45.  
  46. set sample._dummy_=:
  47.  
  48. echo rem sample>%temp%\sample.lst
  49. FOR /F "tokens=2* delims=.=" %%A IN ('SET sample') DO ECHO %%B>>%temp%\sample.lst
  50.  
  51. rem ёючфр╕ь resources.h ё шфхэЄшЇшърЄюЁрьш ЁхёєЁёют
  52. sjasmplus --nologo --msg=war ..\_sdk\lib_sndpage.asm
  53. copy sound.bin ..\_sdk\ > nul
  54. del sound.bin > nul
  55.  
  56. sjasmplus.exe --nologo --msg=war --exp=_temp_/nedoload.exp nedoload.asm
  57. rem java -jar ../_sdk/exp2hConverter.jar _temp_/nedoload.exp > nul
  58. perl ../_sdk/exp2hConverter.pl _temp_/nedoload.exp > nul
  59.  
  60. makeresh "%temp%\image.lst" "%temp%\palette.lst" "%temp%\music.lst" "%temp%\sample.lst" "%temp%\sprite.lst" "%soundfx%"
  61.  
  62. rem ъюьяшышЁєхь шёїюфэшъ эр C
  63.  
  64. sdcc -mz80 -I. -c ..\_sdk\evo.c
  65. rem copy evo.rel ..\_sdk\
  66. rem sdcc -mz80 --fno-omit-frame-pointer --xstack --code-loc 0x4000 --data-loc 0 --no-std-crt0 -I..\_sdk ..\_sdk\crt0.rel ..\_sdk\evo.rel --opt-code-size main.c -o %temp%\out.ihx
  67. sdcc -mz80 --code-loc 0x4000 --data-loc 0 --no-std-crt0 -I..\_sdk ..\_sdk\crt0.rel evo.rel --opt-code-size --nogcse main.c -o %temp%\out.ihx
  68. del evo.rel
  69.  
  70. if ERRORLEVEL 1 goto clean
  71.  
  72. rem т√ч√трхь ъюьяшы ЄюЁ ЁхёєЁёют
  73. rem юэ ёючфр╕Є эрсюЁ сшэрЁэ√ї Їрщыют яю юфэюьє эр срэъ ярь Єш
  74. rem яы■ё ёъЁшяЄ√ фы  ёцрЄш  Їрщыют megalz ш ёсюЁъш юсЁрчр фшёър
  75.  
  76. rem evoresc "%temp%\out.ihx" "..\_sdk\startup.bin" "%soundfx%" "%temp%\music.lst" "%temp%\palette.lst" "%temp%\image.lst" "%temp%\sample.lst" "%temp%\sprite.lst"
  77. rem echo tools\sjasmplus\sjasmplus.exe "%temp%\..\nedoload.asm"
  78. sjasmplus.exe --nologo --msg=war --exp=_temp_/nedoload.exp nedoload.asm
  79.  
  80. rem echo -CALL NEDORESC------------------------------
  81. rem evoresc_new.exe BINARY_FILE "%temp%\out.ihx" STARTUP_FILE "..\_sdk\startup.bin" SFX_LIST "%soundfx%" MUSIC_LIST "%temp%\music.lst" PALETTE_LIST "%temp%\palette.lst" IMAGE_LIST "%temp%\image.lst" SAMPLE_LIST "%temp%\sample.lst" SPRITE_LIST "%temp%\sprite.lst" ALT_PAGE_NUMERING "1"
  82. evoresc_new.exe BINARY_FILE "%temp%\out.ihx" STARTUP_FILE "..\_sdk\startup.bin" SFX_LIST "%soundfx%" MUSIC_LIST "%temp%\music.lst" PALETTE_LIST "%temp%\palette.lst" IMAGE_LIST "%temp%\image.lst" SAMPLE_LIST "%temp%\sample.lst" SPRITE_LIST "%temp%\sprite.lst" ALT_PAGE_NUMERING "0"  SOUND_BIN_FILE "../_sdk/sound.bin" SND_PAGE 0 SPRTBL_PAGE 1 PAL_PAGE 2  SPRBUF_PAGE 3 GFX_PAGE 10 CC_PAGE0 100 CC_PAGE1 101 CC_PAGE2 102 CC_PAGE3 103
  83. if ERRORLEVEL 1 goto clean
  84.  
  85. rem echo %PATH%
  86. rem echo %CD%
  87. perl ../_sdk/getMainAddr.pl .\_temp_\out.map _temp_\addr.bin
  88.  
  89. rem яхЁхїюфшь тю тЁхьхээє■ фшЁхъЄюЁш■
  90.  
  91. rem echo -11----------------------------
  92. rem echo %CD%
  93. cd %temp%
  94.  
  95. rem яръєхь Їрщы√
  96.  
  97. copy ..\..\_sdk\getsize.bat >nul
  98. rem kills PATH!!!
  99. rem call compress.bat
  100.  
  101. rem ёюсшЁрхь чруЁєчўшъ
  102.  
  103. rem echo -12----------------------------
  104. rem copy ..\..\_sdk\loader.asm loader.asm >nul
  105. rem echo -13----------------------------
  106. rem copy ..\..\_sdk\unmegalz.asm unmegalz.asm >nul
  107. rem echo -14----------------------------
  108. rem copy ..\..\_sdk\target.asm target.asm >nul
  109. rem echo -15----------------------------
  110. rem ..\..\_sdk\tools\sjasmplus\sjasmplus.exe loader.asm >nul
  111.  
  112. rem ёюсшЁрхь юсЁрч ш фхырхь хую ьюэюсыюўэ√ь
  113.  
  114. rem call createscl.bat
  115.  
  116. cd ..
  117. rem echo -12----------------------------
  118. rem echo %CD%
  119.  
  120. rem copy %temp%\disk.scl %output% >nul
  121. rem ..\..\_sdk\monoscl %output%
  122.  
  123. set error=0
  124.  
  125. rem єфры хь тЁхьхээє■ фшЁхъЄюЁш■
  126.  
  127. :clean
  128.  
  129. rem rd /s /q %temp%
  130.  
  131. :end
  132.  
  133. set palette.0=
  134. set palette.1=
  135. set palette.2=
  136. set palette.3=
  137. set palette.4=
  138. set palette.5=
  139. set palette.6=
  140. set palette.7=
  141. set palette.8=
  142. set palette.9=
  143. set palette.10=
  144. set palette.11=
  145. set palette.12=
  146. set palette.13=
  147. set palette.14=
  148. set palette.15=
  149. set palette.16=
  150. set palette.17=
  151. set palette.18=
  152. set palette.19=
  153. set image.0=
  154. set image.1=
  155. set image.2=
  156. set image.3=
  157. set image.4=
  158. set image.5=
  159. set image.6=
  160. set image.7=
  161. set image.8=
  162. set image.9=
  163. set image.10=
  164. set image.11=
  165. set image.12=
  166. set image.13=
  167. set image.14=
  168. set image.15=
  169. set image.16=
  170. set image.17=
  171. set image.18=
  172. set image.19=
  173. set image.20=
  174. set image.21=
  175. set image.22=
  176. set image.23=
  177. set image.24=
  178. set image.25=
  179. set image.26=
  180. set image.27=
  181. set image.28=
  182. set image.29=
  183. set image.30=
  184. set sprite.0=
  185. set sprite.1=
  186. set sprite.2=
  187. set sprite.3=
  188. set sprite.4=
  189. set sprite.5=
  190. set sprite.6=
  191. set sprite.7=
  192. set sprite.8=
  193. set sprite.9=
  194. set sprite.10=
  195. set sprite.11=
  196. set sprite.12=
  197. set sprite.13=
  198. set sprite.14=
  199. set sprite.15=
  200. set sprite.16=
  201. set sprite.17=
  202. set sprite.18=
  203. set sprite.19=
  204. set soundfx=
  205. set music.0=
  206. set music.1=
  207. set music.2=
  208. set music.3=
  209. set music.4=
  210. set music.5=
  211. set music.6=
  212. set music.7=
  213. set music.8=
  214. set music.9=
  215. set music.10=
  216. set music.11=
  217. set music.12=
  218. set music.13=
  219. set music.14=
  220. set music.15=
  221. set music.16=
  222. set music.17=
  223. set music.18=
  224. set music.19=
  225. set sample.0=
  226. set sample.1=
  227. set sample.2=
  228. set sample.3=
  229. set sample.4=
  230. set sample.5=
  231. set sample.6=
  232. set sample.7=
  233. set sample.8=
  234. set sample.9=
  235. set sample.10=
  236. set sample.11=
  237. set sample.12=
  238. set sample.13=
  239. set sample.14=
  240. set sample.15=
  241. set sample.16=
  242. set sample.17=
  243. set sample.18=
  244. set sample.19=
  245.  
  246.  
  247. if %error%==1 pause