home *** CD-ROM | disk | FTP | other *** search
- REM File: a_make.bat -- build A_DEMO.AOM from scratch
- REM ========== ASSEMBLE C Start-Up Routine ==========
- REM X generate cross-reference listing
- REM S put all symbols (local and global) into object module
- a8051 a_cstart.s03 a_cstart.lst a_cstart.r03 X S
- REM Replace default CSTARTUP module in the C library
- REM with the one assembled above. New library will be
- REM at MYLIB.R03 (original library not changed).
- copy \c51v2\cl8051.r03 mylib.r03
- xlib a_make.lcl
- REM ========== COMPILE ==========
- ECHO OFF
- REM -o name.r03 object module output to name.r03
- REM -l name.lst generated code listing output to name.lst
- REM -a name.s03 generated assembly language source output to name.s03
- REM -V verbose diagnostics
- REM -P generate PROMable code
- REM -m1 large static memory model
- REM -g enable global type checking (compile-/link-time)
- REM -e enable target-dependent extensions
- REM -x generate cross-reference
- REM -q put mnemonics in list (merge C source into .lst file)
- REM -j put static and local symbols into object debug tables
- REM -p88 88 lines/page in listing
- REM -I\c51v2\ directory to search for '#include' preprocessor directives
- ECHO ON
- c-51 -o a_hlmain.r03 -l a_hlmain.lst -a a_hlmain.s03 -V -P -m1 -g -e -x -q -j -p88 -I\c51v2\ a_hlmain.c
- c-51 -o a_inner.r03 -l a_inner.lst -a a_inner.s03 -V -P -m1 -g -e -x -q -j -p88 -I\c51v2\ a_inner.c
- c-51 -o a_waste.r03 -l a_waste.lst -a a_waste.s03 -V -P -m1 -g -e -x -q -j -p88 -I\c51v2\ a_waste.c
- REM ========== LINK ==========
- xlink -f a_make.xcl
- del mylib.r03
-