HP Forums

Full Version: 41 Help !!! :-)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I have a sequences of letters.
For instance ABCDEFGHIJKLM... (alpha mode, size 21 letters).
How do I do to have only the first 3 letters?
Using the commands of HP41CX, but I don't want to use the xmemory.

Hi, Gileno;

as you have a CX, you can try this 'Mickey-Mouse' (as simple as it gets):

ATOX
ATOX
ATOX
CLA
X<> Z
XTOA
RDN
XTOA
RDN
XTOA
It does not use X-memory, only X-functions. Contents of stack registers are lost, only previous X-register contents is kept ((in Y-register). If you need more digits to be handled the same way, maybe other specific ALPHA operations would be more helpfull.

Cheers.

Luiz

Hi,

another simple solution:

Suppose you have ABCDEFGHI... in Alpha.

ASTO L  (stores the 6 leftmost chars in L, that is 'ABCDEF')
"XXX" (replace old Alpha contents by 'XXX')
ARCL L (appends the 6 chars from L to ALPHA, giving 'XXXABCDEF')
ASTO L (store again, this time 'XXXABC' )
"YYY" (replace old Alpha contents by 'YYY')
ARCL L (append prev stored chars, giving 'YYYXXXABC')
ASHF (shift 6 leftmost chars out. Here you are: 'ABC' ;-)

Seven steps, only uses Alpha and L register.

No X-Functions or CX needed.

Works on any HP-41;-)

Shorter version anyone, using a basic 41?


HTH

Raymond


Edited: 19 Nov 2005, 7:42 p.m.

I thank all of the solutions