Chapter 2
eSL/eSLS Series (+ eSLZ000) User’s Manual
Architecture
••••
31
2.5.2 Conditional Branch Instruction
Conditional jumps support program branching relative to the program counter.
The numeric range of short condition branch is 9-bit offset values (-256 to 255).
Long range condition branch can reach from 0 to 65,535, but it needs two words
instruction.
The condition branch instructions that are supported by the eSL are shown in
the following table. When an specified condition is met, a signed 9-bit is added
to the value in the program counter, or the program counter is replaced by 16-bit
absolute address.
Condition Branch Instruction Definitions
Mnemonic
Description
Operation
Comment
IF CC JMP
Jump if carry (C) clear
If (C==0) then jump to PC +n+ 1
Simple
IF CS JMP
Jump if carry (C) set
If (C==1) then jump to PC +n+ 1
Simple
IF VC JMP
Jump if overflow (V) clear
If (V==0) then jump to PC +n+ 1
Simple
IF VS JMP
Jump if overflow (V) set
If (V==1) then jump to PC +n+ 1
Simple
IF NE JMP
Jump if not equal
If (Z==0) then jump to PC +n+ 1
Simple
IF EQ JMP
Jump if equal
If (Z==1) then jump to PC +n+ 1
Simple
IF PL JMP
Jump if plus
If (N==0) then jump to PC +n+ 1
Simple
IF MI JMP
Jump if minus
If (N==1) then jump to PC +n+ 1
Simple
IF TC JMP
Jump if test (T) clear
If (T==0) then jump to PC +n+ 1
Simple
IF TS JMP
Jump if test (T) set
If (T==1) then jump to PC +n+ 1
Simple
IF LO JMP
Jump if lower than
If (C==0) then jump to PC +n+ 1
Unsigned
IF HS JMP
Jump if higher or same
If (C==1) then jump to PC +n+ 1
Unsigned
IF LS JMP
Jump if lower or same
If (N^V==0) then jump to PC +n+ 1
Unsigned
IF GE JMP
Jump if greater than or equal
If (N^V==1) then jump to PC +n+ 1
Signed
IF GT JMP
Jump if greater than
If (Z|(N^V)==0) then jump to PC +n+ 1
Signed
IF LE JMP
Jump if less than or equal
If (Z|(N^V)==1) then jump to PC +n+ 1
Signed
IF LT JMP
Jump if less than
If (C==0 | Z==1) then jump to PC +n+ 1
Signed
JMP
Always Jump
Always jump to PC +n+ 1
Simple
The instruction code fetch and the program counter increment technique end
with the following formula:
•
PC_new = 1 + Offset (When taking a
short
branch)
•
PC_new = 16-bit (LSB) absolute address (When taking a
long
branch)
NOTE
Condition Branch can be used simply by keying the mnemonic. The eSL assembler
chooses the
short
or
long
branch depending on the offset range status.
Содержание eSL Series
Страница 8: ...Contents viii Contents eSL eSLS Series eSLZ000 User s Manual...
Страница 11: ...Contents eSL eSLS Series eSLZ000 User s Manual Contents xi...
Страница 12: ......
Страница 28: ......
Страница 110: ...Chapter 3 98 Peripheral Control eSL eSLS Series eSLZ000 User s Manual BC IO INTF1 ADIF RETI...
Страница 115: ...Chapter 3 eSL eSLS Series eSLZ000 User s Manual Peripheral Control 103...
Страница 148: ......
Страница 154: ...Chapter 4 142 Electrical Characteristics eSL eSLS Series eSLZ000 User s Manual...