Hi,

> I was able to create very simple code and use it in real HW. However, I
> was unable to determine how to use pic14 config registers using 2.5 and
> 2.6 (txt) docs. For interest, I installed 2.6.5 snapshot but it no
> longer links my code; cannot find _main. I don't see _main in symbol
> listings of libs; should I?

Yes you should, try declaring main() non-static:
  void main(void) {
    // code here
  }

> Also, can someone say where to find definition of proper syntax to
> access config register/port?

__code unsigned __at(0x2007) foobar = _CP_OFF
        & _DEBUG_ON
        & _WRT_ENABLE_OFF
        & _CPD_OFF
        & LVP_OFF
        & BODEN_ON
        & _WDT_OFF
        & _XT_OSC
        ;

void main(void)
{
  // code here
}

HTH,
Raphael



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to