HP Forums
HP-50G: "LASTARG disabled" ??? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: HP-50G: "LASTARG disabled" ??? (/thread-2209.html)



HP-50G: "LASTARG disabled" ??? - Bill Zimmerly - 09-29-2014 05:44 PM

I entered Joe's HP-50G program described in this video; Programming the Same Task: HP-41, HP-71B, HP 50g, HP Prime ... and it keeps failing with an error message "LASTARG Error: LASTARG disabled."

I've looked through the manuals to see if there is some kind of flag that enables/disables LASTARG and have come up blank.

Does anyone know why this isn't working? (Thanks!)


RE: HP-50G: "LASTARG disabled" ??? - Bill Zimmerly - 09-29-2014 09:36 PM

I found the answer on this obscure document after a diligent Google search. Search the page for "LASTARG Disabled" and it appears that flag -55 should be clear in order for LASTARG to be enabled.


RE: HP-50G: "LASTARG disabled" ??? - Joe Horn - 09-30-2014 01:51 AM

Flag -55 is also mentioned in the entry for LASTARG in the HP 50g Advanced User's Reference Manual.

FWIW, press MODE, F1 (FLAGS), 5. See the entry for flag -55 (the negative sign is assumed). Clicking F3 (CHK) on flag -55 will toggle between "Save last args" and "No last args". Suggestion: Except in temporary extreme circumstances, always leave that flag clear ("Save last args"). If you have a program that sets it, edit the program to clear it before exiting.


RE: HP-50G: "LASTARG disabled" ??? - Bill Zimmerly - 09-30-2014 02:55 AM

Thanks Joe! Wink
- Bill


RE: HP-50G: "LASTARG disabled" ??? - Wes Loewer - 09-30-2014 08:47 PM

Bill,

Just so you know, you can also turn this feature on/off by going to the LeftShiftHold-Mode menu, then selecting MISC. From there you can toggle ARG off and on.

As Joe indicated, there are not too many times you'll ever want to disable it. The only thing I can think of is if you had a REALLY large object and you didn't want it to take up memory sitting in LASTARG.

-wes


RE: HP-50G: "LASTARG disabled" ??? - Bill Zimmerly - 09-30-2014 10:54 PM

Thanks Wes! Wink
- Bill


RE: HP-50G: "LASTARG disabled" ??? - Joe Horn - 10-01-2014 04:06 AM

(09-30-2014 08:47 PM)Wes Loewer Wrote:  Bill,

Just so you know, you can also turn this feature on/off by going to the LeftShiftHold-Mode menu, then selecting MISC. From there you can toggle ARG off and on.

As Joe indicated, there are not too many times you'll ever want to disable it. The only thing I can think of is if you had a REALLY large object and you didn't want it to take up memory sitting in LASTARG.

-wes

And here's a cute programming tip that most 50g users don't know. When the menu Wes mentioned above is showing, press right-shift ALPHA (ENTRY), then press either left-shift ARG and see -55 SF, or press right-shift ARG and see -55 CF. It types the flag number for you! In general, when you're programming and you forget any flag number (e.g. what flag turns off the beeper?) just go to any menu that has that flag in it, and press left-shift to set that flag, and right-shift to clear it, without needing to remember the flag number.

You might notice that STK and CMD in Wes' menu don't seem to obey this "programming tip". That's because they are not controlled by normal flags, and cannot be turned on and off with the SF or CF commands.