|ARM Technical Support Knowledge Articles|
Applies to: A51 Macro Assembler
Information in this article applies to:
I want to move the carry bit into the accumulator in 8051 assembly, but I keep getting a syntax error. What instruction should I use?
The Intel data book uses the syntax CY for carry bit. However, the Keil assembler uses C for the carry bit. To correctly implement this instruction in A51, use the following code:
MOV ACC.0, C
Article last edited on: 2005-09-22 11:30:00
Did you find this article helpful? Yes No
How can we improve this article?