Calling function from library without lcall.

I have been programming in ASM some project, which, together with the source code will have to transfer to the customer. But this project contains some of the functions source code which I do not want give to customer. I went as follows: i create a library and needed for me function connect to my project with

EXTERN CODE(function name)

, and calling this function by

lcall function name

. But this solution is not best. When i call function from library many times each call using 5 CLK for lcall and 4 CLK fro ret, and this slows the program.
Maybe somebody knows call function from library without lcall and ret instruction. In C++(on PC),example, i using

inline

statement, maybe something similar is ASM(or Ax51).

Thanks for all!.

Parents
  • maybe something similar is ASM(or Ax51)

    There is something similar to inline in assembler. It's called a macro, but it implies that the source code for the macro is available.
    You can try and replace instructions in a macro with DB statements to make reverse engineering more difficult. But this way you'll loose the linker's relocation services.
    I'm afraid your options are very limited.

Reply
  • maybe something similar is ASM(or Ax51)

    There is something similar to inline in assembler. It's called a macro, but it implies that the source code for the macro is available.
    You can try and replace instructions in a macro with DB statements to make reverse engineering more difficult. But this way you'll loose the linker's relocation services.
    I'm afraid your options are very limited.

Children
More questions in this forum