180/317
6 - STMicroelectronics Programming Tools
The first four lines make the assembler translate the four source files of the project.
The fifth line gives the object files to link, then the name of the result file, and the name of the
libraries that may be needed. Here, no libraries are used, hence the comma that terminates
the line. The result files are
CATERPIL.COD
and
CATERPIL.MAP
that contain the machine code
and the list of the segments and external symbols.
The pause command allows you to read the result of the linking on the screen before pro-
ceeding.
The next line converts the
CATERPIL.COD
file into a text file encoded using one of the possible
ascii-hex formats, here the Motorola format. The result is the
CATERPIL.S19
file.
The last two lines cause the two source files to be re-assembled, but with the option
-FI=CATERPIL.MAP
that tells the assembler to produce an absolute listing, taking the informa-
tion from the
CATERPIL.MAP
file to evaluate the effective addresses of the relocatable ob-
jects.The -sym option, also used, causes the table of symbols to be built. This table is used by
the emulator to identify and locate the various program objects.
06-fi
6.4.4 Using WinEdit to change and compile the files
To load W inEdit, click on its icon in the start menu. It is also convenient to add a shortcut to
WinEdit on the desktop; so you can open WinEdit by double-clicking on it .
Using the Open File tool, or the menu File/Open, select the type “Asm Source files”. Then the
four .ASM files are listed. Select MAIN.ASM, and open it.
File.map
asm.exe
(-fi option)
File1.lst
Assembler invocation :
-fi=file.map option;
"asm file1 -fi=file.map"
produces a documented with
absolute addresses listing file.
File1.asm
Up dated
listing file
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...