Data Transfer Instructions | Of 8051 Ppt
Swaps only the lower nibble (4 bits) between the Accumulator and indirect RAM. 3. Addressing Modes Summary
Useful for segment decoding (e.g., driving a 7-segment display). 2.4 Stack Operations ( PUSH and POP ) Data Transfer Instructions Of 8051 Ppt
Swaps the full byte between Accumulator and a register. Swaps only the lower nibble (4 bits) between
To read look-up tables or constants stored in the program memory (ROM), the MOVC (Move Code) instruction is used. MOVC A, @A+DPTR or MOVC A, @A+PC @A+DPTR or MOVC A
The efficiency of these instructions is governed by the addressing mode used: Data is part of the instruction ( #data ). Register: Uses R0-R7. Direct: Uses the 8-bit RAM address. Indirect: Uses @R0 or @R1 as pointers. 4. Conclusion