Omron C200HE Computer Hardware User Manual


 
187
Example In the following example, the content of C (HR 00) is 8010, and COLL(81) is used
to copy the most recent entries from a 10-word stack (IR 001 to IR 010) to LR 20.
Stack pointer
decremented
After one
execution
After two
executions
COLL(81)
001
HR 00
LR 20
00001
Address Instruction Operands
00000 LD 00001
00001 COLL(81)
001
HR 00
LR 20
IR 001
Before
execution
1234
000 2
ABCD
1234
000 0
IR 002
IR 003
IR 010
IR 002
IR 010
IR 001
IR 010
Output
ABCD
LR 20
Output
1234
LR 20
Stack pointer
decremented
Stack pointer
Stack area
IR 003
IR 001
000 1
IR 002
IR 003
Flags ER: The content of C is not BCD or 6655<C<8000.
When C6655, DBs and DBs+C are not in the same data area.
When C8000, the beginning and end of the stack are not in the same
data area or the value of the stack pointer exceeds the length of the
stack.
Indirectly addressed DM word is non-existent. (Content of DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ: ON when the transferred data is zero; otherwise OFF.
5-16-8 MOVE BIT MOVB(82)
S: Source word
IR, SR, AR, DM, HR, LR, #
Bi: Bit designator (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
D: Destination word
IR, SR, AR, DM, HR, LR
MOVB(82)
S
Bi
D
@MOVB(82)
S
Bi
D
Limitations The rightmost two digits and the leftmost two digits of Bi must each be between
00 and 15.
Data Movement Section 5-16