MOVC moves a byte from Code Memory into the Accumulator. The Code Memory address from which the byte will be moved is calculated by summing the value of the Accumulator with either DPTR or the Program Counter (PC). In the case of the Program Counter, PC is first incremented by 1 before being summed with the Accumulator.
Syntax : MOVC A,@A+register
Example : MOVC A,@A+DPTR
It will move the data in the Accumulator from the memory location whose address is indicated by A+DPTR.
Syntax : MOVC A,@A+register
Example : MOVC A,@A+DPTR
It will move the data in the Accumulator from the memory location whose address is indicated by A+DPTR.
- Instruction
- Opcode
- Bytes
- Flags
- MOVC A,@A+DPTR
- 0x93
- 1
- None
- MOVC A,@A+PC
- 0x83
- 1
- None