You can use the following instructions to convert binary coded decimal numbers and integers to other types of numbers:
| · | BCD_I : | BCD to Integer |
| · | I_BCD : | Integer to BCD |
| · | BCD_DI : | BCD to Double Integer |
| · | I_DI : | Integer to Double Integer |
| · | DI_BCD : | Double Integer to BCD |
| · | DI_R : | Double Integer to Real |
You can use one of the following instructions to form the complement of an integer or to invert the sign of a floating-point number:
| · | INV_I : | Ones Complement Integer |
| · | INV_DI : | Ones Complement Double Integer |
| · | NEG_I : | Twos Complement Integer |
| · | NEG_DI : | Twos Complement Double Integer |
| · | NEG_R : | Negate Real Number |
You can use any of the following instructions to convert a 32-bit IEEE floating-point number in accumulator 1 to a 32-bit integer (double integer). The individual instructions differ in their method of rounding:
| · | ROUND : | Round to Double Integer |
| · | TRUNC : | Truncate Double Integer Part |
| · | CEIL : | Ceiling |
| · | FLOOR : | Floor |
0 comments:
Post a Comment