Manipulating Standard Libraries (C51S.LIB)

So I want to replace a standard function in the C51S library. Shouldn't be too hard, right?

I rewrote the function (?C?LMUL to be specific) in assembly and compiled it using the A51 assembler. (processes it without complaint) The code looks like this:

; Segment Definition
?C?LMUL	SEGMENT	CODE

; Module Start
RSEG	?C?LMUL
MOV	...
...
END

I fire up the LIB51 from the command line...
LIB51 DELETE C51S.LIB (?C?LMUL)
A check using LIB51 LIST confirms that I squashed the old ?C?LMUL. Now to put mine back in.
LIB51 ADD NEW_LMUL.OBJ (?C?LMUL) TO C51S.LIB
>> ERR 223 CANNOT FIND MODULE
So I tried to add the whole thing...
LIB51 ADD NEW_LMUL.OBJ TO C51S.LIB
LIB51 LIST C51S.LIB
This listing show that "NEW_LMUL" is in there, but ?C?IMUL is not...

Can anyone help me on this one? Thanks.

Parents
  • It doesn't appear that you made ?C?LMUL PUBLIC.

    Also, why replace these files in the library? You can create your own library and just include it in the linkage BEFORE the Keil libraries. Replacing the modules in the Keil libraries is potentially going to cause you lots of problems in the future.

    Jon

Reply
  • It doesn't appear that you made ?C?LMUL PUBLIC.

    Also, why replace these files in the library? You can create your own library and just include it in the linkage BEFORE the Keil libraries. Replacing the modules in the Keil libraries is potentially going to cause you lots of problems in the future.

    Jon

Children
More questions in this forum