ADD: Difference between revisions
Jump to navigation
Jump to search
(Spellling error) |
(+text from " ND-110 Instruction Set") |
||
Line 3: | Line 3: | ||
|Description=Add to A register | |Description=Add to A register | ||
|Format=ADD ''<address mode> <disp.>'' | |Format=ADD ''<address mode> <disp.>'' | ||
|Code=060 000 | |Code=060 000<sub><small>8</small></sub> | ||
|Affected=A:=A+(EL), C, O, Q | |Affected=A:=A+(EL), C, O, Q | ||
|Arcitecture=[[ND-100]], [[ND-110 CPU|ND-110]] | |||
}} | }} | ||
'''ADD''' is an instruction on the ND platform. It | '''ADD''' is an instruction on the ND platform. It add the contents of the memory location pointed to by the [[effective address]] to the [[A register]], leaving the result in 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 [[Wikipedia:Carry (arithmetic)|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. | ||
== | == References == | ||
*{{ND-doc|06.014.02|Page 135}} | *{{ND-doc|06.014.02|Page 135}} | ||
*{{ND-doc|06.029.01|Page 65}} | |||
[[Category:ND-100 instructions]] | [[Category:ND-100 instructions]] |
Revision as of 07:06, 1 April 2009
ADD | |
---|---|
Description | Add to A register |
Format | ADD <address mode> <disp.> |
Code | 060 00088 |
Affected | A:=A+(EL), C, O, Q |
Type | User |
Architecture | {{{Architecture}}} |
ADD is an instruction on the ND platform. It add the contents of the memory location pointed to by the effective address to the A register, leaving the result in 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.
References
- Norsk Data Document ND–06.014.02 ND-100 REFERENCE MANUAL Page 135
- Norsk Data Document ND–06.029.01 ND-110 Instruction Set Page 65