3. Instructions
300
CS/CJ/NSJ Series Instructions Reference Manual (W474)
DIST
Applicable Program Areas
Operands
Bs: Destination Base Address
Of: Offset
The offset can be any value from 0000 to FFFF (0 to 65,535 decimal).
Note Bs and Bs+Of must be in the same data area.
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
SINGLE WORD DISTRIBUTE DIST @DIST 080
Transfers the source word to a destination word
calculated by adding an offset value to the base
address.
Symbol
DIST
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S Source word WORD 1
Bs Destination base address WORD 1
Of Offset UINT 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK
OK OK
--- OK --- --- --- ---Bs --- ---
Of OK OK
Name Label Operation
Error Flag ER OFF
Equals Flag = • ON if the source data is 0000.
• OFF in all other cases.
Negative Flag N • ON if the leftmost bit of the source data is 1.
• OFF in all other cases
DIST(080)
S
Bs
Of
S: Source word
Bs: Destination base address
Of: Offset
15 0
Bs
Bs+Of