-
Notifications
You must be signed in to change notification settings - Fork 0
/
cram.BAT
32 lines (21 loc) · 814 Bytes
/
cram.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
@echo off
set Cosmic_license_File=27400@crwnfcetls1
copy main.c "xxxx_01.c"
cx6811 -v -l +debug "xxxx_01.c"
if ERRORLEVEL 1 GOTO :CLEANUP
echo Compilation succesful......
clnk -o "linked.h11" -p -m "map.txt" "cram.lkf"
if ERRORLEVEL 1 GOTO :CLEANUP
echo Linking Succesful.....
chex -fm -h -s -e0x400 -o "outs19.txt" "linked.h11"
if ERRORLEVEL 1 GOTO :CLEANUP
echo Hex conversion succesful - output file is called outs19.txt
echo Linker map file generated - output file is called map.txt
echo C/Assembly listing generated - output file is called assem.txt
echo New C program start is 400 hex
:CLEANUP
if EXIST "assem.txt" del "assem.txt"
if EXIST "xxxx_01.ls" ren "xxxx_01.ls" "assem.txt"
if EXIST "xxxx_01.c" del "xxxx_01.c"
if EXIST "linked.h11" del "linked.h11"
if EXIST "xxxx_01.o" del "xxxx_01.o"