Re: 41CL TURBO anomaly? Message #7 Posted by M. Joury on 15 May 2012, 10:10 a.m., in response to message #6 by Ángel Martin
Hi Ángel,
Thank you for your response.
I guess I still have the old docs. I'll grab the latest shortly. Do you know which version went into the 41CL V3? I have not installed my V3 board yet.
While I have yet to find a need for INCY and DECY I suspect that these fall into those cases where when you do need them you *really* would like to have them since incrementing Y without using ISG (which may not be possible--there is a way around this problem) takes a fair amount of stack manipulation.
X<>Y
1
+
X<>Y
or
1
STO+ Z
RDN
And either approach ends with you pushing T off the top of the stack.
The other approach would be to use ISG followed by a NO-OP to deal with the potential skip. This would preserve the stack:
ISG Y
X<>X
...
Using X<>X as a NO-OP. This would probably be the approach I would use.
At any rate I understand your reasoning.
I am just trying to get into MCODE programming and am thinking about building a small utility library with these sorts of functions. You already have most of the ones I want but also many that I would not include since the idea is not to build a "higher math" library but a simple utility library. This is something that I am just starting to play with since I have never done any MCODE on a 41.
Cheers,
-Marwan
|