EasyManua.ls Logo

Automationdirect.com DL05 - Load Address (LDA)

Automationdirect.com DL05
480 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Standard
RLL Instructions
5–51
Standard RLL Instructions
Accumulator / Stack Load and Output Data Instructions
O aaa
LDA
The Load Address instruction is a 16 bit
instruction. It converts any octal value or
address to the HEX equivalent value and
loads the HEX value into the accumulator.
This instruction is useful when an address
parameter is required since all addresses
for the DL05 system are in octal.
Operand Data Type DL05 Range
aaa
Octal Address O All V mem. (See page 4–28)
Discrete Bit Flags Description
SP70 on when the value loaded into the accumulator by any instruction is zero.
SP76 on when the value loaded into the accumulator by any instruction is zero.
NOTE: Two consecutive Load instructions will place the value of the first load
instruction onto the accumulator stack.
In the following example when X1 is on, the octal number 40400 will be converted to
a HEX 4100 and loaded into the accumulator using the Load Address instruction.
The value in the lower 16 bits of the accumulator is copied to V2000 using the Out
instruction.
1
B
ENT
4
E
0
A
4
E
0
A
0
A
ENT
Handheld Programmer Keystrokes
DirectSOFT
LDA
O 40400
X1
Load The HEX equivalent to
the octal number into the
lower 16 bits of the
accumulator
OUT
V2000
Copy the value in lower 16
bits of the accumulator to
V2000
V2000
Acc.
Hexadecimal
4100
4100
0000 4100
Octal
4040 0
The unused accumulator
bits are set to zero
STR
$
SHFT
ANDST
L
3
D
0
A
OUT
GX
SHFT
AND
V
2
C
0
A
0
A
ENT
0
A
Load Address
(LDA)

Table of Contents

Related product manuals