• #DEFINE and EXTRN NUMBER are incompatible ???
    Dear friends, Plz help me in solving this bad problem: PROBLEM DESCRIPTION: I have a number defined in C and I DONT want to alocate memory in 8051 for this number : #define myNumber 0x1234...
  • Help On A51 EXTRN Directive
    I create a C51 project and write just one A51 subroutine(for speed).I define some SFR in the header file just like sbit FLASH_CS = P1^1; sbit A19 = P3^5; sbit A18 = P3^4; sbit A17 = P3^3; sbit A16...
  • EXTRN CODE ( FUNCTION ) gives L16 if FUNCTION is BIT
    uvision 2 v2.40, c51 v7.09, bl51 v5.03 gives: *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?IS_OK_INC_DTARGET_SPD?SPDLIM spdlim.c has bit IS_OK_INC_DTARGET_SPD(...
  • I have a problem. How to extrn asm in C inline asm.
    I want to extrn a function in asm in C. example: _asm { extrn test:near call test } like the example: but I have a exception like that: inline syntax error in 'opcode'; found 'test'
  • Interrupt numbering
    I have noticed that the Kiel compiler doesn't produce the correct interrupt vector if 8051 interrupt numbers are used. For example for external interrupt 0 (IE0), the interrupt number has to be 0, instead...