UMBC CMSC 211

UMBC | CSEE


Floating Point I/O

It takes special software to input and output floating point numbers. There are four routines in UTIL.LIB to do this for you:

Name input output
GetFP none floating point number from keyboard is in ST
PutFP ST on the FPU stack number is display and popped from ST
FP2Bin ds:si points to a string of ASCII characters real number in ST. ds:si is left pointing to first character after after the converted number.
Bin2FP ST on the FPU stack, es:di points to first character of a string of characters in which the converted number will be stored. converted number at specified location and stack is popped. es:di is left pointing to the first character after the last character stored.


UMBC | CSEE