[comp.sys.handhelds] LASTX for the HP-48SX

darrylo@hpnmdla.hp.com (Darryl Okahata) (03/06/91)

     When I use the HP-48SX as a calculator, I miss the LASTX key
present on older RPN calculators (the last args key doesn't cut it, as I
then have to swap and drop to get what I want).  Here is a version of
LASTX for the 48SX.

     -- Darryl Okahata
	UUCP: {hplabs!, hpcea!, hpfcla!} hpnmd!darrylo
	Internet: darrylo%hpnmd@relay.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion or policy of Hewlett-Packard or of the
little green men that have been following him all day.

===============================================================================
@
@ This is a version of LASTX for the HP-48SX
@ Cut everything before the "%%HP" line.
@
%%HP: T(3)A(D)F(.);
\<< DEPTH \-> n
  \<< LASTARG DEPTH n
- DUP \-> s
    \<< ROLLD s 1 -
DROPN
    \>>
  \>>
\>>