??? 08/28/07 06:58 Read: times |
#143683 - Parameter Passing R6, R7 Responding to: ???'s previous message |
Jacob Boyce said:
There are times when I am using R6 and R7 in my assembly code. As already noted, when interfacing to a High-Level Language - any HLL - you must play by the Compiler's rules! The Keil C51 compiler will use R6 and/or R7 to pass-in parameters - see: http://www.keil.com/support/m...assreg.htm so you might as well take advantage of that! Note that you do not have to preserve these registers - so, once you've received the passed-in values, you can do with them as you please! |