Post Reply 
cas or home - test in program (userkeys)
12-03-2014, 10:08 AM (This post was last modified: 12-03-2014 10:43 AM by Angus.)
Post: #1
cas or home - test in program (userkeys)
I have always set home to rpn.
When the calculator is in cas mode Entry still gives 2. How can I check if I am in home or cas mode in a program? I need to distinguish, because user keys have to react in a different way.

Thank you!
Find all posts by this user
Quote this message in a reply
12-03-2014, 11:39 AM
Post: #2
RE: cas or home - test in program (userkeys)
Does this help in any way?

(12-02-2014 10:20 PM)Tim Wessman Wrote:  Use the new #cas #end in a program file. Try to make a "CAS program" from the catalog and you will see the new way to do it. Doing this means that your comments in the CAS functions won't be lost, they can be edited in the conn kit, you can't accidentally delete them and have them permanently gone, and they behave more like the other "program" source files, etc. You can even mix them in with the normal exported function variables.

Basically, anything within #cas #end is executed/parsed by the CAS parser on source compile or check. Thus doing this for example is now perfectly valid:

Code:

#cas
f(x):=x^2;
#end

EXPORT test()
BEGIN
  f(3);
END;
Find all posts by this user
Quote this message in a reply
12-03-2014, 11:53 AM
Post: #3
RE: cas or home - test in program (userkeys)
not really.
I run home im rpn so I have to use a totally different syntax than under textbook or alg. If the pime realized that it is in cas and Entry was different things were easy. But it does not seem to work that way.

The thing is I decided to continue my work on a satifying way to do integer base conversion. I took a look at the poll-site and the desire for a HP42 like, clean and straightforward way to convert bases seems to be rare.
Find all posts by this user
Quote this message in a reply
12-04-2014, 01:45 PM
Post: #4
RE: cas or home - test in program (userkeys)
Hello,

a (really bad) solution may be
Code:
EXPORT HOMEorCAS()
BEGIN
  IFTE(BITAND(GETPIX_P(23,13),#800000h),"CAS","HOME");
END;
(don't take it too seriously).

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




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