Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions Additional remark  The representation of a negative value and its absolute value are described below. 1. Whether the value in a register is a positive value or a negative value depends on the leftmost bit in the register. If the leftmost bit in a register is 0, the value in the register is a positive value. If the leftmost bit in a register is 1, the value in the register is a negative value. 2. The negative value in a register can be converted into its absolute value by means of the instruction NEG.

(D0)=2 (D0)=1 (D0)=0 (D0)=-1 (D0)+1=1 (D0)=-2 (D0)+1=2 (D0)=-3 (D0)+1=3 (D0)=-4 (D0)+1=4 (D0)=-5 (D0)+1=5 (D0)=-32,765 (D0)+1=32,765 (D0)=-32,766 (D0)+1=32,766 (D0)=-32,767 (D0)+1=32,767 (D0)=-32,768 (D0)+1=-32,768 The maximum absolute value is 32,767.

5-49 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0