Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
UserRPL commands from 49/50 for 48[S/G]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John H Meyers  
View profile  
 More options Jun 6 2007, 6:23 am
Newsgroups: comp.sys.hp48
From: "John H Meyers" <jhmey...@nomail.invalid>
Date: Wed, 06 Jun 2007 05:23:17 -0500
Local: Wed, Jun 6 2007 6:23 am
Subject: UserRPL commands from 49/50 for 48[S/G]
UserRPL programs that are designed for HP49/50 series
might use new stack manipulation and other commands,
which were not defined in the original HP48[S/G] series.

Versions of several newer commands are offered below,
enabling transfer of more unaltered HP49/50 oriented
UserRPL programs to the original HP48[S/G] series
(since they are apparently so popular and long-lived :)

The remainder of this article is transferable as
a UserRPL file (the last optional portion requires Jazz
or other on-board SysRPL compiler)

%%HP: T(3); @ Header for ascii file transfer only

@ Stack commands for HP48[S/G] in UserRPL form:

\<< SWAP DROP \>> 'NIP' STO

\<< DUP DUP \>> 'DUPDUP' STO

\<< ROT ROT \>> 'UNROT' STO

\<< 3 PICK \>> 'PICK3' STO

\<< 0 MAX 0 RND DUP
{ DUP 2 + ROLL DROP ROLLD }
{ DROP2 } IFTE \>> 'UNPICK' STO

\<< 0 MAX 0 RND 2 OVER DUP2 >
{ DROP2 DUP NOT { SWAP DROP } IFT }
{ FOR n DROP DUP n NEXT } IFTE \>> 'NDUPN' STO

@ Other HP49/50 commands suggested for HP48[S/G]

\<< QUOTE \>> 'I\->R' STO

\<< QUOTE STD \>> 'R\->I' STO

@ List <-> Matrix (numeric only) for HP48G[X/+] only
@ (these handle both vectors and matrices)

\<< \>> 'AXM' STO
\<< IF DUP TYPE 5 == THEN L\->M ELSE M\->L END \>>
'AXL' STO

\<< 1 \<< DUP TYPE 5 == { LIST\-> \->ARRY } IFT \>>
DOLIST OBJ\-> ROW\-> \>> 'L\->M' STO

\<< \->ROW \->LIST 1 \<< DUP TYPE 1 > { ARRY\->
EVAL \->LIST } IFT \>> DOLIST \>> 'M\->L' STO

@ Stop here unless Jazz is installed!

@ Stack commands for HP48[S/G] in SysRPL form
@ (assuming Jazz installed):

":: CK2NOLASTWD SWAPDROP ;" ASS 'NIP' STO

":: CK1NOLASTWD DUPDUP ;" ASS 'DUPDUP' STO

":: CK3NOLASTWD UNROT ;" ASS 'UNROT' STO

":: CK3NOLASTWD 3PICK ;" ASS 'PICK3' STO

":: CK2NOLASTWD CKREAL %1+ CKNNOLASTWD #1-
DUP#0=case 2DROP DUP#2+ ROLLDROP UNROLL ;"
ASS 'UNPICK' STO
@ Stack errors return incremented original arg

":: CK2NOLASTWD CKREAL COERCE NDUPN UNCOERCE ;"
ASS 'NDUPN' STO

@ [End]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Bryant  
View profile  
 More options Jun 6 2007, 10:48 am
Newsgroups: comp.sys.hp48
From: Mike Bryant <jbmbry...@gmail.com>
Date: Wed, 06 Jun 2007 07:48:50 -0700
Local: Wed, Jun 6 2007 10:48 am
Subject: Re: UserRPL commands from 49/50 for 48[S/G]

> ":: CK2NOLASTWD SWAPDROP ;" ASS 'NIP' STO

That looks like it could hurt...  :P

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »