Chinaunix首页 | 论坛 | 博客
  • 博客访问: 178094
  • 博文数量: 69
  • 博客积分: 2627
  • 博客等级: 少校
  • 技术积分: 715
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-24 22:37
文章分类

全部博文(69)

文章存档

2017年(3)

2014年(1)

2013年(4)

2012年(6)

2011年(21)

2010年(15)

2009年(19)

我的朋友

分类: LINUX

2011-09-04 23:47:35

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) |
给主人留下些什么吧!~~