Add separate assembler file

Hello,

I want to split my assembler program into two files (main file + function file).

How can I do that?

With:

main.a51 
$INCLUDE “func.a51“ 
END 

at the end of the main program, I get the message:

FILE: FUNC.A51

ERROR: FILE DOES NOT EXIT

and without: $INCLUDE “func.a51“ the functions in “func.a51“ are not found in the main program.

KEIL-C Version: 9.60.7.0

Kind Regards

Juergen