MPY: Difference between revisions
Jump to navigation
Jump to search
(MPY instruction) |
m (multiply->multiplies) |
||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
}} | }} | ||
'''MPY''' is an assembly instruction. It | '''MPY''' is an assembly instruction. It multiplies the contents of the memory location pointed to by the [[effective address]] with the | ||
contents of the [[A register]], leaving the result in the A register. | contents of the [[A register]], leaving the result in the A register. | ||
== Flags affected == | == Flags affected == | ||
If an overflow occurs, that is if the result has an absolute value greater than 32767<sub>10</sub>, | If an overflow occurs, that is if the result has an absolute value greater than 32767<sub>10</sub>, | ||
both the [[dynamic overflow indicator]] (''' | both the [[dynamic overflow indicator]] ('''Q''') and the [[static overflow indicator]] ('''O''') are set to one. | ||
Latest revision as of 13:12, 31 May 2010
MPY | |
---|---|
Description | Multipy integer |
Format | MPY <addr. mode> <disp.> |
Code | 120 0008 |
Affected | A:=A*(ea), O, Q |
Type | User |
Architecture | ND-100, ND-110 |
MPY is an assembly instruction. It multiplies the contents of the memory location pointed to by the effective address with the contents of the A register, leaving the result in the A register.
Flags affected
If an overflow occurs, that is if the result has an absolute value greater than 3276710, both the dynamic overflow indicator (Q) and the static overflow indicator (O) are set to one.
References
- Norsk Data Document ND–06.014.02 ND-100 REFERENCE MANUAL Page 136
- Norsk Data Document ND–06.029.01 ND-110 Instruction Set Page 65