Assembler Syntax - Samsung S3C2500B User Manual

Table of Contents

Advertisement

INSTRUCTION SET

3.4.3 ASSEMBLER SYNTAX

Items in {} are optional. Items in < > must be present.
B{L}{cond} <expression>
{L}
{cond}
<expression>
Examples
here
BAL
B
CMP
BEQ
BL
ADDS
BLCC
3-8
Used to request the branch with link form of the instruction. If absent, R14 will not be
affected by the instruction.
A two-character mnemonic as shown in Table 3-2. If absent then AL (Always) will be
used.
The destination. The assembler calculates the offset.
here
there
R1,#0
fred
sub+ROM
R1,#1
sub
; Assembles to 0xEAFFFFFE (note effect of PC offset).
; Always condition used as default.
; Compare R1 with zero and branch to fred
; if R1 was zero, otherwise continue.
; Continue to next instruction.
; Call subroutine at computed address.
; Add 1 to register 1, setting CPSR flags
; on the result then call subroutine if
; the C flag is clear, which will be the
; case unless R1 held 0xFFFFFFFF.
S3C2500B

Advertisement

Table of Contents
loading

Table of Contents