Posts: 78
Threads: 6
Joined: Jan 1970
Mike,
Q1: If you're referring to UserRPL programs, the system does that, can't help. Otherwise, go to www.hpcalc.org and get a copy an editor from that site. I'm using ED from the Jazz library but you'll need more memory to store it.
Q2: Get an HP16 emulator from the aforementioned site.
Q3: Yes, several. Try one of the following built-in features:
String begin end SUB -> sub of string
String character POS -> position of character in string
String HEAD -> first character
Joe
Posts: 1,162
Threads: 26
Joined: Aug 2005
2) YEs, the HP48 (and HP49) machines support all the normal bitwise functions. The commands are what you'd expect -- AND, OR, NOT, etc
The 2 arguments to these commands _must_ be 'binary numbers' -- that is to say they must be #nnnn. If they're real numbers, it uses a true/false sort of logic (0 is false, anything else is true), which is not what you want.
If you want to mask off all but the bottom 16 bits of a number first use R->B to convert it to binary, and then #FFFFh AND . You can use B->R to turn it back into a real number if you want to.
(3). There's the SUB command. It takes 3 arguments off the stack. The string in level 3, the first character position in level 2 (leftmost character is 1), and the last character position in level 1.
The arguments are removed from the stack, and the result returned to the stack as with every other command. For example
"HELLO WORLD" 3 7 SUB returnes "LLO W". The SIZE command can be useful to find the number of characters in a string so as to be able to calculate first and last character positions.
All these commands (string handling and bitwise) can be used in programs.