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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/22/05 15:50
Read: times


 
#88157 - A51 to C51 interfacing
Responding to: ???'s previous message
Kurnia Brahmana said:
I have difficulties to call the A51 subroutine from C51.

There is a whole chapter in the C51 Manual on interfacing C51 to Assembler.

What particular problems are you having?

The easiest way to do it is to create a "dummy" function in C51 with the necessary return value & parameter(s), then let the C51 compiler translate this into A51 source for you by using the SRC directive.
You can then take the generated A51 source, confident in the knowledge that the compiler knows exactly how to generate correct code, and fill-in the body of the function with your own assembly code.

See the C51 Manual for details of the SRC directive



List of 20 messages in thread
TopicAuthorDate
Rotating Carry (CY) through ACC in C51            01/01/70 00:00      
   Why ?            01/01/70 00:00      
      It is a keyboard interface sub routine            01/01/70 00:00      
         A51 to C51 interfacing            01/01/70 00:00      
            inline            01/01/70 00:00      
               it does, but            01/01/70 00:00      
                  Nevertheless            01/01/70 00:00      
                     A Case in point            01/01/70 00:00      
   what?            01/01/70 00:00      
      Thank you.            01/01/70 00:00      
      Try            01/01/70 00:00      
   what?            01/01/70 00:00      
   shift first            01/01/70 00:00      
      Problem Solved            01/01/70 00:00      
         Wrong approach            01/01/70 00:00      
            using chainsaw to perform dental surgery            01/01/70 00:00      
               or...            01/01/70 00:00      
   ANSI C            01/01/70 00:00      
      microcontroller C portability is a myth            01/01/70 00:00      
         Portability No .. Commonality Maybe            01/01/70 00:00      

Back to Subject List