分类: LINUX
2014-06-23 09:45:26
; => /* */ 或者 //2、[伪操作符替换]
JUMPADDR => JUMPADDR: -- 符号定义加:号
INCLUDE => .INCLUDE
EQU => .equ
TCLK2 EQU PB25 => .equ TCLK2, PB25
TCLK2 EQU PB25 => .equ TCLK2, PB25
DCD => .long .word
IF :DEF: => #if defined(MACRO_SAMPLE)
ELSE => #else
ENDIF => #endif
:OR: => |
:SHL: => <<
Entry => Entry:
END => .end
AREA Word, CODE, READONLY => .text
AREA Block, DATA, READWRITE => .data
CODE32 => .arm
CODE16 => .thumb
LTORG => .ltorg
% => .fill
MACRO => .macro
MEND => .endm
EXPORT => .global
IMPORT => .extern
GBLL GBLA => .global
SETL SETA => #define 或者.equ
EQU => #define
GET option.a => #include "option.a"
?? => .align
3、[操作数及运算符号替换]
ldr pc, [pc, #&18] 替换成 ldr pc, [pc, #+0x18]
“&” => “+0x”
ldr pc, [pc, #-&20] 替换成 ldr pc, [pc, #-0x20]
“-&” => “-0x”