EasyManua.ls Logo

ST ST7 - Using Winedit to Change and Compile the Files

ST ST7
317 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
Thenextlineconvertsthe
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 WinEdit, 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

Table of Contents

Related product manuals