03-08-2016, 12:22 PM
Hi dear friends,
I was thinking this past night of a function usefull from some HP RPL.
It is : DUP n
For those wich not know what it is, an sample :
assume we have in level one ( or x register) a value that it is 0 or 1 or "n", if it is 0 no copy but a drop is include and this is the important, if it is 1 it is like enter etc.
In WP34s it is not so I do like this :
If I have zero in x : no copy
If I have one in x : I copy , and drop the value 0 or 1.
Then me I do this :
(I combination test and flag) :
.
.
.
register x = 0
CF 00
DROP
FC?C 00
[ENTER]
[ENTER]
.
.
.
And it is as DUP n for 0 or one.
May be you give me what you think of that ?
Good day.
I was thinking this past night of a function usefull from some HP RPL.
It is : DUP n
For those wich not know what it is, an sample :
assume we have in level one ( or x register) a value that it is 0 or 1 or "n", if it is 0 no copy but a drop is include and this is the important, if it is 1 it is like enter etc.
In WP34s it is not so I do like this :
If I have zero in x : no copy
If I have one in x : I copy , and drop the value 0 or 1.
Then me I do this :
(I combination test and flag) :
.
.
.
register x = 0
CF 00
DROP
FC?C 00
[ENTER]
[ENTER]
.
.
.
And it is as DUP n for 0 or one.
May be you give me what you think of that ?
Good day.