ARM Technical Support Knowledge Articles

MOVING CARRY BIT INTO ACCUMULATOR

Applies to: A51 Macro Assembler

Answer


Information in this article applies to:


QUESTION

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?

ANSWER

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

MORE INFORMATION

Article last edited on: 2005-09-22 11:30:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential