Hi found C code for 16bit float arthimatic http://www.jhauser.us/arithmetic/SoftFloat.html It is possible to include Softfloat library to incorporate in SDCC C compiler ?
float16 for all 8bit Controller sdcc l
__sfr __at 0X89 P2M1; __sfr __at 0X91 SFRS; define P2M1_P2 2 define PosBit7 0x07 define Set(Reg,Bit) #ifdef Reg_P2 { SFRS = 2; Reg |= (1<<Bit); SFRS =0; } #elseif { Reg |= (1<<Bit); } #else #endif void main (void) { Set(P2M1,3); }
Noted
include<at89x52.h></at89x52.h> ifdef Bit #define SET(Reg,Bit) Reg|=(1<<Bit) #else #define SET(Reg,Bit) Bit=1; #endif #define SET1(Reg,Bit) Bit=1; define SET1(Reg,Bit) Bit=1; void main(void) { SET(PCON,SMOD); SET(P0,P0_3); SET1(P0,P0_3); } compilation fail ref the attached JPG image
include<at89x52.h></at89x52.h> ifdef Bit #define SET(Reg,Bit) Reg|=(1<<Bit) #else #define SET(Reg,Bit) Bit=1; #endif define SET1(Reg,Bit) Bit=1; void main(void) { SET(PCON,SMOD); SET(P0,P0_3); SET1(P0,P0_3); } compilation fail ref the attached JPG image
__asm MUL A,B; MUL AB; __endasm; does not generate error Message for MUL A,B;
Half precision float (16 bits )
I am using SDCC C compiler for 8051 core . I think that SDCC C compiler does not supporting for float half precision floating point . I am looking for half precision (FP16) library for SDCC. Please add support for float half precision in SDCC or does older version of SDCC support float half precision ?
I am using SDCC C compiler for 8051 core . I think that SDCC C compiler does not supporting for float half precision floating point . I am looking for half precision (FP16) library for SDCC. Please add support for float half precision in SDCC or does older version of SDCC support float half precision.
How to to create project using SDCC for Nuvoton MS51PC0AE ? How to Convert MS51BSP_KEIL BSP(https://github.com/OpenNuvoton/MS51BSP_KEIL) Keil and integrate it in PlatformIO Visual Studio Code ? In short need quick start guide for SDCC for MS51/ML51 ect. Series