Texas Instruments MSP430x1xx User Manual page 82

Texas instruments modules and peripherals user's guide
Table of Contents

Advertisement

Instruction Set
JGE
Jump if greater or equal
Syntax
JGE
If (N .XOR. V) = 0 then jump to label: PC + 2 × offset −> PC
Operation
If (N .XOR. V) = 1 then execute the following instruction
Description
The status register negative bit (N) and overflow bit (V) are tested. If both N
and V are set or reset, the 10-bit signed offset contained in the instruction LSBs
is added to the program counter. If only one is set, the instruction following the
jump is executed.
This allows comparison of signed integers.
Status Bits
Status bits are not affected.
Example
When the content of R6 is greater or equal to the memory pointed to by R7,
the program continues at label EDE.
CMP
JGE
......
......
......
RISC 16−Bit CPU
3-46
label
; R6 ≥ (R7)?, compare on signed numbers
@R7,R6
; Yes, R6 ≥ (R7)
EDE
; No, proceed

Advertisement

Table of Contents
loading

Table of Contents