Hi,

> I couldn't make a demonstrative toy example, so I've instead attached
> a pruned section of the code that originally caused me trouble.  It
> does illustrate incorrect use of the STATUS.IRP register.

the code looks rather good with the exception of the calls to
_gptrget1, which should really be calls to _gptrget2: They should
retrieve a "udata __data *" (2 byte pointer) from memory. If they did
that and wrote the high byte of the address into the now seemingly
uninitialized register, things would look less grim.
I'll need to look into the PIC14 code generation routines -- not
before this weekend.

Anyway, thanks for the updated report -- especially the .asm was quite
enlightening.

Best regards,
Raphael

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to