Hi , I have problems with float point division.
| uss rts6700.lib V7.0.5 | ||
| FADCR | default | |
| FAUCR | default | |
| FMCR | default | |
| CFLAGS = -mv6710 -O2 -ms0 --quiet --diag_warning=225 --interrupt_threshold=1000 --opt_for_speed=5 -k --asm_listing --output_all_syms | ||
formula is =INT((5+X)*10000.0/4000+0.5)
| input | formula | result from C6711D |
| 0 | 13 | 10 |
| 1 | 15 | 12 |
| 2 | 18 | 32 |
| 3 | 20 | 32 |
| 4 | 23 | 18 |
| 5 | 25 | 20 |
| 6 | 28 | 22 |
| 7 | 30 | 24 |
| 8 | 33 | 26 |
| 9 | 35 | 64 |
| 10 | 38 | 64 |
| 11 | 40 | 64 |
| 12 | 43 | 33 |
Any idea about it ?