HP Prime or HP 50g
|
03-28-2014, 09:59 AM
Post: #53
|
|||
|
|||
RE: HP Prime or HP 50g
(03-25-2014 04:06 PM)HP67 Wrote: Looking at your example line of code that is in Sys RPL, I was wondering: can we type in :: blah ; and expect it the calculator to compile it automagically just like it does with User RPL code bracketed with << >> or do we have to use some MASD magic commands to compile it? Correct: it takes two steps instead of one. You type the whole System RPL program's source code into a string, and then you "assemble" the string into a System RPL program using the ASM command. Conversely, if you want to edit the program, you disassemble it back into a string, edit the string, then assemble it with ASM again. Same basic idea for any non-user-RPL object. Interesting factoid: If you have the extable library installed, and you set flag -85, then objects on the stack will be displayed in "System RPL display mode". It will SEEM like they are being disassembled on the stack, but they're not; it's just a useful display fiction. The object remains unchanged on the stack. Example: put << 1. 2. + >> on the stack, set flag -85, and you'll see the program displayed as: :: x<< %1 %2 x+ x>> ; I find that useful enough to have a key assignment that toggles flag -85. But remember, if you actually want to edit it in System RPL, you have to disassemble it into a string, edit the string, and re-assemble it again. Flag -85 is just for taking a quick peek at the System RPL source code of objects. <0|ɸ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)