??? 05/04/08 16:06 Read: times |
#154380 - Floating Point Routine Listed Responding to: ???'s previous message |
Jerson -
I loaded my 16/32 bit 8051 math routines and left out the Floating Point stuff! It worked!!! Here is all the code needed... Thank You so MUCH! <PRE> CMD1: MOV LOAD_32BYTE,#00H ;14,800 -COUNT READING MOV LOAD_32BYTE+1,#02H MOV LOAD_32BYTE+2,#42H MOV LOAD_32BYTE+3,#20H ; CALL LOAD_32 ;Load 14,800- OP_0,OP_1 ; MOV DIV_16BYTE,#00H ;Load Divisor 127 MOV DIV_16BYTE+1,#7FH ; CALL DIV_16 ;Result is 16-bit ; CALL LOW_16 ;Get R6(HB) R7(LB) MOV ANSWER,R6 MOV ANSWER+1,R7 ;Send value to Serial Display[1] ; MOV R0,#ANSWER LCALL PRNT_4H LCALL CRLF RETPRE> |
Topic | Author | Date |
Floating Point Routine Listed | 01/01/70 00:00 | |
Contact Jerson | 01/01/70 00:00 | |
Floating Point Routine Listed | 01/01/70 00:00 | |
Replied to personal email | 01/01/70 00:00 | |
Floating Point Routine Listed | 01/01/70 00:00 | |
You\'re almost there | 01/01/70 00:00 | |
Floating Point Routine Listed | 01/01/70 00:00 | |
No - I COUNTRY | 01/01/70 00:00 | |
Floating Point Routine Listed![]() | 01/01/70 00:00 |