hi i think there have to be a patch to sdcc to do that ,but it is overkill
modifying a compiler for 1 broken soft cpu is just too much . but u can modify the assembly code generated , then "flash that" just in case , do u know that fpga can be reprogrammed with a fixed image ? regards gpunk Le 2015-06-05 16:12, Simon Dible a écrit : > Hi > > I'm working on an 8051 FPGA image that has broken logical operations on > the carry flag, at this time its not viable to fix them. Is there some > way to make sdcc for the 8051 not generate these instructions, or work > out what C code would generate them to avoid using it? > > ORL C, /bit > ORL C, bit > ANL C, /bit > ANL C, bit > MOV C, bit > > Many thanks > Simon > > ------------------------------------------------------------------------------ > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user i ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user