Chapter 4 Optimization

4.3Usage Example

Optimization Instructions

Optimization covers the following conditional branches, unconditional branches, subroutine calls, data transfer instructions, arithmetic instructions, logical instructions, bit manipulation instructions, and user-defined instructions.

Table 4-1 Optimized Conditional Branch Instructions

Instruction

Type

Branch Range

 

 

 

BLT label

 

 

BGT label

 

 

BGE label

 

 

BLE label

 

 

BCS label

 

 

BHI label

 

 

BCC label

Relative branch instruction

Branch within -128 to +127 bytes of the PC.

BLS label

 

 

BEQ label

 

 

BNE label

 

 

BVC label

 

 

BVS label

 

 

BNC label

 

 

BNS label

 

 

Table 4-2 Unconditional Branches and Subroutine Calls Subject to Optimization

 

 

 

Instruction

Type

Branch Range

 

 

 

BRA label

Relative branch instruction

Branch within -128 to +127 bytes of the PC

CALL label

 

 

CALLS label

Branch instruction

Branch within the 4-gigabyte memory space.

JMP label

 

 

JSR label

 

 

46 Usage Example

Page 58
Image 58
Panasonic MN1030 Usage Example, Optimization Instructions, Optimized Conditional Branch Instructions Type Branch Range