Post Reply 
Swap X Y in RPN Mode
02-27-2023, 09:14 PM
Post: #5
RE: Swap X Y in RPN Mode
(02-27-2023 04:09 PM)KeithB Wrote:  One nit: On the Prime you *can't* swap X and Y since there are no X and Y registers. Like forth, you have an arbitrary number of stack levels. On the Prime they are numbered. So you swap levels 1 and 2, not X and Y.

Aha, quite right! But what should we call it? "1<>2" looks goofy. Maybe just "SWAP" like in RPL? (Related note: Prime's RPN is NOT the same as RPL. Prime's RPN stack is limited to 128 objects, maximum.) Prime's keyboard calls it Unicode 292D, "", but that's not easy to type on some systems, and I personally find it annoyingly unreadable.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Swap X Y in RPN Mode - Mgerbasio - 02-25-2023, 08:39 PM
RE: Swap X Y in RPN Mode - Joe Horn - 02-26-2023, 03:24 AM
RE: Swap X Y in RPN Mode - KeithB - 02-27-2023, 01:33 PM
RE: Swap X Y in RPN Mode - KeithB - 02-27-2023, 04:09 PM
RE: Swap X Y in RPN Mode - Joe Horn - 02-27-2023 09:14 PM
RE: Swap X Y in RPN Mode - Peet - 02-27-2023, 09:30 PM
RE: Swap X Y in RPN Mode - polbit - 02-27-2023, 10:20 PM
RE: Swap X Y in RPN Mode - PrimeG2_hp48sx - 03-01-2023, 02:57 PM



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