Hi, I have created a assembler project with 8 modules in it. the first module which contained the starting programm has a segement declare as below: cseg AT 0 ljmp MAIN CODE_SEG segment CODE rseg CODE_SEG MAIN: ... the 7 other only have CODE_SEG segment CODE rseg CODE_SEG when I link the project I get the following error message: BL51 BANKED LINKER/LOCATER V4.16a - SN: Cygnal_8051Fxxx COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2001 D:\pwrscanessai\sources\psaffich.obj, D:\pwrscanessai\sources\psprog.obj, D:\pwrscanessai\sources\psinit.obj, D:\pwrscanessai\sources\pstext.obj, D:\pwrscanessai\sources\pskeyb.obj, D:\pwrscanessai\sources\psmesure.obj, D:\pwrscanessai\sources\psmath.obj, D:\pwrscanessai\sources\psdata.obj TO D:\pwrscanessai\sources\psaffich RS(255) PL(68) PW(78) *** ERROR L121: IMPROPER FIXUP MODULE: D:\PWRSCANESSAI\SOURCES\PSMATH.OBJ (PSMATH) SEGMENT: CODE_SEG OFFSET: 0038H LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 1 ERROR(S) my question is: is there a max size for a code segment or can it fill the entire code space? Thanks and regards, Gilles
Don't bother, I've found the solution to my problem. I used ACALL instead of LCALL, so I got the error. Thanks anyway!!!!! Gilles