??? 10/16/04 22:00 Read: times |
#79422 - Floating Point Responding to: ???'s previous message |
Sim Chee Siang said:
Is it possible to write a trigo function in 8051 assembly language or is it easier to do it in high level language? Yes, and Yes! Assembly language is a direct representation of the processor's instruction set - so if it can't be done in assembler, it can't be done at all! However, writing floating point functions is certainly not a trivial excercise - especially in Assembler! It is also very rare that floating point is actually required in embedded applications - especially those suited to an 8051. Therefore, as a beginner's project & a learning excercise, I think you'd be best to concentrate on just developing a basic 4-function calculator. Or use a high-level language that comes complete with floating-point support - and just use it. |