Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/07/04 13:34
Read: times


 
#73721 - Assembler!
Responding to: ???'s previous message
Keil Ruben said:
How do you do a SWAP instruction in C?

I said, "write a little assembler function, and use the SWAP instruction"

You CANNOT force any 'C' compiler to use any specific machine instruction:

http://www.8052.com/forum/read.phtml?id=68927
http://www.8052.com/forum/read.phtml?id=68933

If you do need to use a specific machine instruction, you MUST write in assembler!

It is neither difficult nor uncommon to have a project containing both 'C' and Assembler source files.


List of 11 messages in thread
TopicAuthorDate
4 bit bus?            01/01/70 00:00      
   RE: 4 bit bus?            01/01/70 00:00      
      RE: 4 bit bus?            01/01/70 00:00      
         RE: 4 bit bus?            01/01/70 00:00      
      RE: 4 bit bus?            01/01/70 00:00      
         RE: 4 bit bus?            01/01/70 00:00      
            RE: 4 bit bus?            01/01/70 00:00      
            Assembler!            01/01/70 00:00      
               RE: Assembler!            01/01/70 00:00      
                  RE: Assembler!            01/01/70 00:00      
                  RE: Assembler!            01/01/70 00:00      

Back to Subject List