User data – Toshiba T2N User Manual

Page 201

Advertising
background image

3. User Data

188

PROSEC T2N

(2)

Digit Designation for instruction Data Exchange

Example 3)

Q2

–[

R0000

XCHG

D000

]–

(data exchange instruction)

It is like a mixture of examples 1) and 2). 2 digits (8bits)
datastarting with R000 are transferred to the lower 8 bits of
D0000 and 8 bits data which are 0 are transferred to the upper 8
bits of D0000. At the same time, the lower 2 digits (8 bits) data of
D000 are tranferred to the 2 digits (8 bits) stating with R0000.

1. Be careful that the result of digit designation does not exceed the

address range. When the result of digit designation exceeds the
address range, the excess portion will be ignored a boundary error
will occur.

2. A combination of digit designation and index modification can also

be used.
Example)

Q1

I

If I = H001C, it signifies the same

Q1

R0000

R001C

NOTE

The value of RW000 before
exchange remains.

Substitute by 0

RW000

D0000

D0000

RW000

F

7

0

F

7

0

F

7

0

F

7

0

Advertising