2 Assemblers
2.1 Fields
.operation code field(pesudo-instruction,pseudo-operation,pseudo-op)
.opperand field
.address field
.common and label field (optional)
2.1.1 Delimiters
standard arm assembler delimiters:
label instruction ;comment
common delimiter: space, and commas,periods,semicolons,colons,slashes,question marks
2.1.2 Labels
Colon(:) delimiters are not used by the ARM assembler.
2.2 Operation Codes (Mnemonics)
2.3 Directives
DEFINE CONSTANT (Data)
EQUATE (Define)
AREA
DEFINE STORAGE (Reserve)
2.3.3 the AREA directive
the AREA directive allows the programmer to specify the memory locations where programs,subroutines,
or data will reside.
2.4 Operands and Addresses
2.4.1 Decimal Numbers
ADD 100
2.4.2 Other Number Systems
2_nnn Binary
8_nnn Octal
nnn Decimal
0xnnn Hexadecimal
2.4.3 Names
names will be treated as the data that they represent.
FIVE EQU 5
add r2,#FIVE
2.4.4 Character Codes
2.4.5 Arithemtic and Logical Expressions
2.5 Comments
2.6 Types of Assemblers
.cross-assembler
.self-assembler
.macroassembler
.meta-assembler
.one-pass assembler
.two-pass assembler
2.7 Errors
2.8 Loaders
.bootstrap loader
.relocating loader
.linking loader
阅读(405) | 评论(0) | 转发(0) |