AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:          ADC {<cond>}{S} <destination>, <operand1>, <operand2>
Operation:     destination = operand one + operand two + carry
Flags:          N,Z,C,V

This operation performs the arithmetic addition of its two operands, also adding the carry flag. If set, the carry flag it is treated as one in the addition. (Otherwise, as zero). The result is stored in the destination register.

ADC allows us to add together numbers which require more than a single word to represent them. eg.
ADDS  result_low, low1, low2     ; Add low words
ADCS  result_high, high1, high2     ; Add high words + carry

[sh-index] Back to list of manuals