Post Reply 
Challenge: Generate 24 in the X register / display
09-08-2020, 03:01 AM
Post: #37
RE: Challenge: Generate 24 in the X register / display
(09-08-2020 12:18 AM)Fred Lusk Wrote:  I shortened my generic DM-42 program again. ...
Code:
01 LBL "T4"
02 ENTER
03 ENTER
04 +
05 +
06 SIGN
07 RCL+ ST X
08 RCLx ST X
09 N!
10 END
Brilliant!

Here is an adapted version for the HP-41 and which also now preserve Z & T .
Code:
01 LBL "T4"
02 ENTER
03 +
04 LastX
05 +
06 SIGN
07 ST+ ST X
08 ST* ST X
09 FACT
10 END

Sylvain
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Challenge: Generate 24 in the X register / display - Sylvain Cote - 09-08-2020 03:01 AM



User(s) browsing this thread: 3 Guest(s)