13.07.2015 Views

TMS320C5x DSP STARTER KIT USER'S GUIDE

TMS320C5x DSP STARTER KIT USER'S GUIDE

TMS320C5x DSP STARTER KIT USER'S GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

.float/.bfloat/.double/.efloat/.tfloatDirectives ReferenceSyntax .float value [,..., value n ].bfloat value [,..., value n ].double value [,..., value n ].efloat value [,..., value n ].tfloat value [,..., value n ]DescriptionThe .float directive places the floating-point representation of a single floating-pointconstant into two words in the current section. value must be a floating-pointconstant. Each constant is converted to a floating-point value in 32-bit IEEEfloating-point format.The IEEE floating-point format consists of three fields: A 1-bit sign field (s) An 8-bit biased exponent (exponent) A 23-bit normalized mantissa (mantissa)15 14 7 6 0s exponent mantissa15 0mantissa.bfloat.efloatThe .bfloat directive format is slightly different in that it has a 16-bit exponentand both a high and low mantissa:15 0exponent15 0mantissa (high)15 0mantissa (low)ExampleHere is an example of floating-point directives.Source file:.ds0400h.bfloat 1.5,3,6.bfloat –1.5,3,6.efloat 1.5,3,6.end5-18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!