3. Instructions
1120
CS/CJ/NSJ Series Instructions Reference Manual (W474)
DISTC
Applicable Program Areas
Operands
Bs: Destination Base Address
Of: Offset
• Data Distribution Operation (0000 to 7999 BCD)
• Stack Push Operation (9000 to 9999 BCD)
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 DISTC @DISTC 566
Transfers the source word to a destination word
calculated by adding an offset value to the base
address.
Symbol
DISTC
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 WORD 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 P_ER • ON if the offset data in Of is not BCD.
• ON if Stack Push Operation is specified, but the stack pointer data in Bs is not BCD.
• ON if Stack Push Operation is specified and the stack pointer indicates a word that exceeds the stack
data area.
Equals Flag P_EQ • ON if the source data is 0000.
• OFF in all other cases.
Negative Flag P_N • ON if the leftmost bit of the source data is 1.
• OFF in all other cases.
S: Source word
Bs: Destination base address
Of: Offset
DISTC(566)
S
Bs
Of
15 0
to
to
Bs
Bs+Of