C h a p t e r 4
Assembly Language and
Cross Assembler
Assembly-Language programs are written as source files. They can be assembled into object files
by the Holtek Cross Assembler. Object files are combined by the Cross Linker to generate a task
file.
A source program is made up of statements and look up tables, giving directions to the Cross As-
sembler at assembly time or to the processor at run time. Statements are constituted by mnemon-
ics (operations), operands and comments.
Notational Conventions
The following list describes the notations used by this document.
Example of Convention
Description of Convention
[
optional items
]
Syntax elements that are enclosed by a pair of brackets are
optional. For example, the syntax of the command line is as
follows:
HASM
[
options
]
filename
[;]
In the above command line,
options
and semicolon; are both
optional, but
filename
is required, except for the following
case:
Brackets in the instruction operands. In this case,
the brackets refer to memory address.
{
choice1
|
choice2
}
Braces and vertical bars stand for a choice between two or
more items. Braces enclose the choices whereas vertical
bars separate the choices. Only one item can be chosen.
Chapter 4 Assembly Language and Cross Assembler
101
4
Summary of Contents for HT46R22
Page 7: ...vi A D Type MCU...
Page 9: ...viii A D Type MCU...
Page 10: ...P a r t I Microcontroller Profile Part I Microcontroller Profile 1...
Page 11: ...2 A D Type MCU...
Page 90: ...P a r t I I Programming Language Part II Programming Language 81...
Page 91: ...82 A D Type MCU...
Page 97: ...88 A D Type MCU...
Page 128: ...P a r t I I I Development Tools Part III Development Tools 119...
Page 129: ...120 A D Type MCU...
Page 140: ...Appendix Appendix 131...
Page 141: ...132 A D Type MCU...
Page 151: ...142 A D Type MCU...
Page 152: ...A p p e n d i x B Package Information Appendix B Package Information 143 B...
Page 161: ...A D Type MCU...
Page 162: ...Amendments...