I will distribute some useful subroutines written in 8051 assembler to be used by other parties who will call these subroutines within his/her assembler program. If I do not wish to distribute the subroutines in assembler source code but in object code format within a library file instead. Is it possible for the other parties to call these object codes from his/her assembler program? If positive, how to make such call in the program?
The fact that a particular function happens to be in a library makes absolutely no difference whatsoever to the way it is called.
Dear Andy, But when I try to translate (assemble) the source code of a calling program which calls that particular subroutine in a library file outside, uVision returns error since it could not find the label of that subroutine from within. So there should have something to be written in the calling program to tell it to get that subroutine from the library file outside. But how?
have you added the Library to your project? have you defined the correct Public & External symbols?
Good reminder. After I studied the sample assembler source codes from Keil under the subdirectory C:\Keil\C51\EXAMPLE\ASM in my hard disk, I have solved the problem now. Thanks you guys.