MicroLogix 1000: example of indexed addressing
The following Masked Move (MVM) example uses an indexed address in the source and destination addresses. If the offset value is 10 (stored in S:24), the processor manipulates the data stored at the base address plus the offset.
MASKED MOVE |
Source<tok_Tab>#N7:10 |
<tok_Tab>0 |
Mask<tok_Tab>0033 |
Dest<tok_Tab>#N7:50 |
<tok_Tab>0 |
In this example, the processor uses the following addresses:
Value | Base Address | Offset Address |
---|---|---|
Source | N7:10 | N7:20 |
Destination | N7:50 | N7:60 |
Provide Feedback