| ??? 05/03/02 16:30 Read: times |
#22475 - RE: Internal EEPROM T89C51CC01 |
Hi Bert,
Here's a snippet from the Keil documentation: " The asm routine must know how parameters are passed, values returned, and the naming conventions of segments. The steps you must follow to create an example are outlined below: 1. Write a simple function in C that passes parameters and returns values the way you want your assembly routine to. 2. Use the SRC directive (#PRAGMA SRC at the top of the file) so that the C compiler generates a .SRC file instead of a .OBJ file. 3. Compile the C file. Since the SRC directive was specified, the .SRC file is generated. The .SRC file contains the assembly code generated for the C code you wrote. 4. Rename the .SRC file to a .A51 file. 5. Edit the .A51 file and insert the assembly code you want to execute into the body of the assembly function shell included in the .A51 file. " Check your compiler manual, look for "Interfacing C Programs to Assembler." It was on p. 155 of my copy of C51.pdf. Dennis |
| Topic | Author | Date |
| Internal EEPROM T89C51CC01 | 01/01/70 00:00 | |
| RE: Internal EEPROM T89C51CC01 | 01/01/70 00:00 | |
| RE: Internal EEPROM T89C51CC01 | 01/01/70 00:00 | |
| RE: Internal EEPROM T89C51CC01 | 01/01/70 00:00 | |
| RE: Internal EEPROM T89C51CC01 | 01/01/70 00:00 | |
| RE: Internal EEPROM T89C51CC01 | 01/01/70 00:00 | |
| RE: Internal EEPROM T89C51CC01 | 01/01/70 00:00 | |
RE: Internal EEPROM T89C51CC01 | 01/01/70 00:00 |



