??? 08/17/07 17:12 Read: times |
#143375 - C function with embeded ASM |
Hi everyone!!
I'm using Keil to write code in C, but I love ASM. I have a Phillips 87c52 pre-programmed with PAULMON2, so I have lot of usefull code on it, and I load my programs on a ram/flash rom to test it. I have a file with the start of the subroutines of the 87c52 rom to call from my ASM programs, but, with C, I dont know how to call them. Is there a way to do something like this? in a ASM file: cout EQU 0x0030 ;Send Acc to serial port in my C file: void cout(unsigned char value) { mov a, value acall cout } thanks!! |