LD
Name |
Load index register to Accumulator |
Function |
The 4 bit content of the designated index register (RRRR) is loaded into accumulator.
The previous contents of the accumulator are lost.
The 4 bit content of the index register and the carry/link bit are unaffected.. |
Syntax |
LD(R) |
Assembled |
|
Binary |
1010 RRRR |
Decimal |
160, then incrementing by 1 until 175 (1st word). |
Hexadecimal |
0xA0, then incrementing by 1 until 0xAF (1st word). |
Symbolic |
|
Execution |
1 word, 8-bit code and an execution time of 10.3 \({\mu}\) sec |
Side-effects |
Not Applicable |
Implemented |
ld |
Detailed Description
The contents of REG are stored into the accumulator, replacing the previous contents
of the accumulator. The contents of REG are unchanged.
The carry bit and the accumulator are not affected.
Example program
The example program will load the contents of register 11 into the accumulator.
If register 11 contains the value 9 (1001b), then after this program is executed,
the accumulator will contain 9 also.
/ Example program
LD 11
END