forked from f4fez/prm80
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
66 lines (55 loc) · 2.63 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@echo off
cd src
if exist 8060_144.bin del 8060_144.bin > nul
if exist 8060d144.bin del 8060d144.bin > nul
if exist 8070_144.bin del 8070_144.bin > nul
if exist 8070d144.bin del 8070d144.bin > nul
if exist 8060_430.bin del 8060_430.bin > nul
if exist 8060d430.bin del 8060d430.bin > nul
if exist 8070_430.bin del 8070_430.bin > nul
if exist 8070d430.bin del 8070d430.bin > nul
if not exist asem.exe goto absent
if not exist hexbin.exe goto absent
if not exist 83c552.mcu goto absent
if exist prm.a51 asem.exe prm.a51 8060_144.hex 8060_144.lst /INCLUDES:83C552.MCU /DEFINE:TARGET:8060 /DEFINE:FREQ:144
if exist prm.a51 asem.exe prm.a51 8070_144.hex 8070_144.lst /INCLUDES:83C552.MCU /DEFINE:TARGET:8070 /DEFINE:FREQ:144
if exist prm.a51 asem.exe prm.a51 8060_430.hex 8060_430.lst /INCLUDES:83C552.MCU /DEFINE:TARGET:8060 /DEFINE:FREQ:430
if exist prm.a51 asem.exe prm.a51 8070_430.hex 8070_430.lst /INCLUDES:83C552.MCU /DEFINE:TARGET:8070 /DEFINE:FREQ:430
if exist 8060_144.hex hexbin.exe 8060_144.hex 8060d144.bin > nul
if exist 8060_144.hex hexbin.exe 8060_144.hex 8060_144.bin /LENGTH:20000 /FILL:FF > nul
if exist 8070_144.hex hexbin.exe 8070_144.hex 8070d144.bin > nul
if exist 8070_144.hex hexbin.exe 8070_144.hex 8070_144.bin /LENGTH:20000 /FILL:FF > nul
if exist 8060_430.hex hexbin.exe 8060_430.hex 8060d430.bin > nul
if exist 8060_430.hex hexbin.exe 8060_430.hex 8060_430.bin /LENGTH:20000 /FILL:FF > nul
if exist 8070_430.hex hexbin.exe 8070_430.hex 8070d430.bin > nul
if exist 8070_430.hex hexbin.exe 8070_430.hex 8070_430.bin /LENGTH:20000 /FILL:FF > nul
if exist 8060_144.hex del 8060_144.hex > nul
if exist 8070_144.hex del 8070_144.hex > nul
if exist 8060_430.hex del 8060_430.hex > nul
if exist 8070_430.hex del 8070_430.hex > nul
if exist 8060_144.lst del 8060_144.lst > nul
if exist 8070_144.lst del 8070_144.lst > nul
if exist 8060_430.lst del 8060_430.lst > nul
if exist 8070_430.lst del 8070_430.lst > nul
dir 80?0????.bin
echo.
echo If no error has occured, 8 binary files should have been created :
echo.
echo - files "8060xxxx.bin" are for the PRM8060 versions.
echo - files "8070xxxx.bin" are for the PRM8070 versions.
echo - files "xxxxx144.bin" are for the VHF versions.
echo - files "xxxxx430.bin" are for the UHF versions.
echo - files "xxxx_xxx.bin" are binaries for the 27C010 (128 kB).
echo - files "xxxxdxxx.bin" are the same binaries for smaller eproms.
goto fin
:absent
echo.
echo Error ! some assembler files seem to be missing...
echo ensure all the following files are present in the SRC directory :
echo - ASEM.EXE
echo - HEXBIN.EXE
echo - 83C552.MCU
:fin
echo.
cd ..
pause