Posts: 1,545
Threads: 168
Joined: Jul 2005
Hi Miguel!
Try it on these expressions from the PPC ROM examples:
Dropbox link to IG results
Posts: 3,229
Threads: 42
Joined: Jul 2006
Nice compact routine.
- Pauli
Posts: 3,283
Threads: 104
Joined: Jul 2005
A few minor remarks:
In your instructions, "cumulatif" should spelled "cumulative". (Neither of us is a native speaker, I assume, so we need to help each other. :-))
Why do you set the stack size to 4? I haven't checked your code but if you don't need A to D for other purposes or rely on the duplication of T just leave the setting alone. If you really need it, use STOM/RCLM to save and restore the mode.
The iteration uses the approximate comparison operator which relies on the display setting (Am I right, Pauli?). Just put a comment in that explains how this affects accuracy of the integral.
I'd like to see some // comments at the end of the lines. This would help to understand your code and it will not disturb the assembler.
Edited: 10 Oct 2011, 2:39 a.m.