
/* eventually use:  unsigned char xdata *
 * as return type instead of unsigned int
 */
unsigned int get_eo_xiseg(void) __naked
{
  __asm
        mov     a,#s_XISEG      ; start
        add     a,#l_XISEG      ; length
        mov     dpl,a
        ;
        mov     a,#(s_XISEG>>8) ; start
        addc    a,#(l_XISEG>>8) ; length
        mov     dph,a
        ;
        ret
  __endasm;
}
