Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

© 2005-2011 Microchip Technology Inc. DS70157F-page 47
Section 3. Instruction Set Overview
Instruction Set
Overview
3
Table 3-8: Program Flow Instructions
Assembly Syntax Description Words Cycles
Page
Number
BRA Expr Branch unconditionally 1 2
(8)
126
BRA Wn Computed branch 1 2
(8)
128
BRA C,Expr Branch if Carry (no Borrow) 1 1 (2)
(1,8)
130
BRA GE,Expr Branch if greater than or equal 1 1 (2)
(1,8)
132
BRA GEU,Expr Branch if unsigned greater than or equal 1 1 (2)
(1,8)
134
BRA GT,Expr Branch if greater than 1 1 (2)
(1,8)
135
BRA GTU,Expr Branch if unsigned greater than 1 1 (2)
(1,8)
136
BRA LE,Expr Branch if less than or equal 1 1 (2)
(1,8)
137
BRA LEU,Expr Branch if unsigned less than or equal 1 1 (2)
(1,8)
138
BRA LT,Expr Branch if less than 1 1 (2)
(1,8)
139
BRA LTU,Expr Branch if unsigned less than 1 1 (2)
(1,8)
140
BRA N,Expr Branch if Negative 1 1 (2)
(1,8)
141
BRA NC,Expr Branch if not Carry (Borrow) 1 1 (2)
(1,8)
142
BRA NN,Expr Branch if not Negative 1 1 (2)
(1,8)
143
BRA NOV,Expr Branch if not Overflow 1 1 (2)
(1,8)
144
BRA NZ,Expr Branch if not Zero 1 1 (2)
(1,8)
145
BRA OA,Expr Branch if Accumulator A Overflow 1 1 (2)
(1,8)
146
BRA OB,Expr Branch if Accumulator B Overflow 1 1 (2)
(1,8)
147
BRA OV,Expr Branch if Overflow 1 1 (2)
(1,8)
148
BRA SA,Expr Branch if Accumulator A Saturate 1 1 (2)
(1,8)
149
BRA SB,Expr Branch if Accumulator B Saturate 1 1 (2)
(1,8)
150
BRA Z,Expr Branch if Zero 1 1 (2)
(1,8)
151
CALL Expr Call subroutine 2 2
(8)
177
CALL Wn Call indirect subroutine 1 2
(8)
180
CALL.L Wn
(4)
Call indirect subroutine (long address) 1 4 183
DO #lit14,Expr
(6)
Do code through PC + Expr, (lit14 + 1) times 2 2 230
DO #lit15,Expr
(7)
Do code through PC + Expr, (lit15 + 1) times 2 2 233
DO Wn,Expr
(3)
Do code through PC + Expr, (Wn + 1) times 2 2 235
GOTO Expr Go to address 2 2
(8)
250
GOTO Wn Go to address indirectly 1 2
(8)
251
GOTO.L Wn
(4)
Go to indirect (long address) 1 4 253
RCALL Expr Relative call 1 2
(8)
347
RCALL Wn Computed call 1 2
(8)
351
REPEAT #lit14
(5)
Repeat next instruction (lit14 + 1) times 1 1 355
Note 1: Conditional branch instructions execute in 1 cycle if the branch is not taken, or 2 cycles if the branch is
taken.
2: RETURN instructions execute in 3 cycles, but if an exception is pending, they execute in 2 cycles.
3: This instruction is only available in dsPIC30F, dsPIC33F, and dsPIC33E devices.
4: This instruction is only available in dsPIC33E and PIC24E devices.
5: This instruction is only available in PIC24F, PIC24H, dsPIC30F, and dsPIC33F devices.
6: This instruction is only available in dsPIC30F and dsPIC33F devices.
7: This instruction is only available in dsPIC33E devices.
8: In dsPIC33E and PIC24E devices, these instructions require 2 additional cycles (4 cycles overall) when
the branch is taken.
9: In dsPIC33E and PIC24E devices, these instructions require 3 additional cycles.

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh