Scott,

Are you sure it doesn't write to DPTR1 when you set DPS to 1 and then perform MOV DPTR,#0 ? B.t.w. SDCC only uses dual datapointers in the alternative crtxinit.asm and not in any other (generated) file IIRC.

To use the multiply unit you could adapt the _div*, _mod* and _mul* library sources. But don't expect too much of it, the advantage might drown in the overhead. Also some _fs* routine might benefit. It seems to me the unit misses an "operation done" indicator.

Maarten

> Has anyone worked on making sdcc play nicely with the Nordic
> Semiconductor nRF24 series of 8051 microcontrollers?  In particular,
> they have a dual DPTR mechanism which isn't quite the same as the one
> SDCC uses (setting DPS seems to change the location used for @DPTR
> instructions, but it doesn't change the place written to by MOV DPTR),
> and there's a hardware multiply unit which seems to want support from
> the sdcc library.
>  --scott
 
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to