| |||
Home > Basic Assembly Language Programming > Introduction > Code examples |
There are a number of code examples in this chapter. Many
of them are supplied in the examples\asm
directory
of the Software Development Toolkit.
Follow these steps to build, link, and execute an assembly language file:
Type armasm -g
at
the command prompt to assemble the file and generate debug tables.filename
.s
Type armlink
to link the object
file.filename
.o
-o filename
Type armsd
to
load the image file into the debugger.filename
Type go
at the armsd:
prompt
to execute it.
Type quit
at the armsd:
prompt
to return to the command line.
To see how the assembler converts the source code, enter:
decaof -c filename
.o
or run the module in ADW or ADU with interleaving on.
See:
armsd for details on armsd.
Chapter 3 ARM Debuggers for Windows and UNIX for details on ADW and ADU.
Chapter 6 Linker in the ARM Software Development Toolkit Reference Guide for details on armlink.
ARM object file decoder of the ARM Software Development Toolkit Reference Guide for additional details on decaof.