| |||||
Technical Support Support Resources
Product Information | A51: MOVING CARRY BIT INTO ACCUMULATORInformation in this article applies to:
QUESTIONI want to move the carry bit into the accumulator in 8051 assembly, but I keep getting a syntax error. What instruction should I use? ANSWERThe 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 MORE INFORMATION
Last Reviewed: Thursday, September 22, 2005 | ||||
| |||||