Hello, I am trying to put a assembler code into a c code, but it gives me errors. I would be pleased if someone explains me how to do it or gives me an example. Thank you very much
Write an assembler function that does it; call the funtion from 'C'. As I keep saying, there is no single language that can be perfect for every conceivable application: Assembler gives you absolute control, and direct access to every aspect of the processor, but is extremely expensive in terms of programmer time & effort; 'C' is far more economical pf programmer resources, but direct manipulation of individual bits is not its strong point. "I could use masks to know the top bit and the bottom bit at every pass but it increases the cpu load a lot." You need to ask yourself this question: what is more important to you - writing in 'C', or minimising the "CPU load?" The trouble with