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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/29/00 11:32
Read: times


 
#4774 - RE: mixing C and assembler language!
Salam
(is this short for Abdelsalam or just a greeting...?)
(sorry, I'm not familiar with the arabic language...*g*)


All public variables declared in an assembly module are available to your C program. Look at the chapter "Advanced Programming Techniques" in the C51 manual. There you will find some rules to interface between C and assembler modules. You can use registers for parameter passing as well.

If you want to write an assemby module that will be called from a C module it's a good idea to generate the shell for the assembly stuff by using the compilers SRC (source) directive. This will generate an assembly file with correct naming conventions. You can easily edit this shell and paste your own assembly code into.

List of 7 messages in thread
TopicAuthorDate
mixing C and assembler language!            01/01/70 00:00      
   RE: mixing C and assembler language!            01/01/70 00:00      
      RE: mixing C and assembler language!            01/01/70 00:00      
RE: mixing C and assembler language!            01/01/70 00:00      
   RE: mixing C and assembler language!            01/01/70 00:00      
RE: mixing C and assembler language!            01/01/70 00:00      
   RE: mixing C and assembler language!            01/01/70 00:00      

Back to Subject List