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
LIB51 DELETE C51S.LIB (?C?LMUL)
LIB51 ADD NEW_LMUL.OBJ (?C?LMUL) TO C51S.LIB >> ERR 223 CANNOT FIND MODULE
LIB51 ADD NEW_LMUL.OBJ TO C51S.LIB LIB51 LIST C51S.LIB
Thanks to all of you for your help and suggestions - I now have it working seamlessly. (The linking process at least - I'll have to finish debuging my new LMUL code tomorrow.) For posterity (as well as the purpose of science) I figured it best if I posted back the solution to the problem. The source code eneded up looking like this...
; Going Public PUBLIC ?C?LMUL ; Segment Definition ?PR?LMUL SEGMENT CODE ; Module Start RSEG ?PR?LMUL ?C?LMUL: MOV ... ... END