ADD: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(New page: {{InstructionBox |Mnemonic=ADD |Description=Add to A register |Format=ADD ''<address mode> <disp.>'' |Code=060 000 |Affected=A:=A+(EL), C, O, Q }} '''STZ''' is an instruction on the ...)
 
(Spellling error)
Line 7: Line 7:
}}
}}


'''STZ''' is an instruction on the ND platform. It adds the [[effective word]] to the [[A register]].
'''ADD''' is an instruction on the ND platform. It adds the [[effective word]] to the [[A register]].


The [[carry indicator]] is set to 1 if a carry occurs from the sign bit positions of the adder, otherwise the carry indicator is reset to 0. If the signs of the two operands are equal, but the sign of the result is different, overflow has occurred, and both the [[dynamic overflow indicator]] and the [[static overflow indicator]] are set to one. If the condition for overflow does not exist, the dynamic overflow indicator is reset to 0, while the static overflow indicator is left unchanged.
The [[carry indicator]] is set to 1 if a carry occurs from the sign bit positions of the adder, otherwise the carry indicator is reset to 0. If the signs of the two operands are equal, but the sign of the result is different, overflow has occurred, and both the [[dynamic overflow indicator]] and the [[static overflow indicator]] are set to one. If the condition for overflow does not exist, the dynamic overflow indicator is reset to 0, while the static overflow indicator is left unchanged.

Revision as of 23:22, 30 March 2009

ADD
Description Add to A register
Format ADD <address mode> <disp.>
Code 060 0008
Affected A:=A+(EL), C, O, Q
Type User
Architecture {{{Architecture}}}

ADD is an instruction on the ND platform. It adds the effective word to the A register.

The carry indicator is set to 1 if a carry occurs from the sign bit positions of the adder, otherwise the carry indicator is reset to 0. If the signs of the two operands are equal, but the sign of the result is different, overflow has occurred, and both the dynamic overflow indicator and the static overflow indicator are set to one. If the condition for overflow does not exist, the dynamic overflow indicator is reset to 0, while the static overflow indicator is left unchanged.


Sources