build.bat

来自「a3load is 8051 firmware that can be used」· Batch 代码 · 共 32 行

BAT
32
字号
@echo off
REM #--------------------------------------------------------------------------
REM #	File:		BUILD.BAT
REM #	Contents:	Batch file to build a3load.
REM #
REM #	Copyright (c) 2000 Cypress Semiconductor All rights reserved
REM #--------------------------------------------------------------------------

REM ### Compile code ###
c51 a3load.c debug objectextend code small moddp2

REM ### Assemble descriptor table ###
a51 usbJmpTb.a51 errorprint debug

REM ### Link object code (includes debug info) ###
REM ### Note: XDATA and CODE must not overlap ###
REM ### Note: using a response file here for line longer than 128 chars
echo a3load.obj, usbJmpTb.obj > tmp.rsp
echo TO a3load RAMSIZE(256) CODE(80h) XDATA(0E00h)  >> tmp.rsp
bl51 @tmp.rsp

REM ### Generate intel hex image of binary (no debug info) ###
oh51 a3load HEXFILE(a3load.hex)

REM ### usage: build -clean to remove intermediate files after build
if "%1" == "-clean" del tmp.rsp

if "%1" == "-clean" del *.lst
if "%1" == "-clean" del *.obj
if "%1" == "-clean" del *.m51

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?