sponsored by OSdata.com Assembly Language floating point arithmetic This web page examines floating point arithmetic instructions in assembly language. Specific examples of instructions from various processors are used to illustrate the general nature of assembly language. ad free version of this exact same web page available here For those with high speed connections, the very large single file summary is still on line. - table of contents for assembly language section
floating point arithmetic further reading: books on assembly language related software further reading: websites floating point arithmetic See also floating point data representations For most processors, integer arithmetic is faster than floating point arithmetic. This can be reversed in special cases such digital signal processors. The basic four floating point arithmetic operations are addition subtraction multiplication , and division Compare instructions are used to examine one or more floating point numbers non-destructively. These are usually implemented by performing a subtraction in some shadow register or accumulator and then setting flags accordingly. Compare instructions can compare two floating point numbers, or can compare a single floating point number to zero. - ADD Arithmetic Addition; DEC VAX; signed addition of scalar quantities (32, 64, or 128 bit floating point) in general purpose registers or memory, available in two operand (first operand added to second operand with result replacing second operand) and three operand (first operand added to second operand with result placed in third operand) (ADDF2 add float 2 operand, ADDF3 add float 3 operand, ADDD2 add double float 2 operand, ADDD3 add double float 3 operand, ADDG2 add G float 2 operand, ADDG3 add G float 3 operand, ADDH2 add H float 2 operand, ADDH3 add H float 3 operand); clears or sets flags
| |
|