Re: About "Lastx" on HP41?? (previous have mistypo data) Message #5 Posted by Vieira, Luiz C. (Brazil) on 23 Sept 2001, 10:08 p.m., in response to message #4 by Vieiral, Luiz C.
Only if the operation before Lastx is a one-number function, like 1/x, SIN, e^x, or if it uses and changes X-register contents, unlike CLX (unusual, but valid). In these cases, LASTARG will bring the previous Level 1 argument, and the procedure will work fine. Otherwise, LASTARG can fill-in levels 1, 2 and even 3, if previous command removes them. As an example, try filling the stack with, say, 5 different arguments (numbers, lists, programs, etc.). Press CLEAR and than LASTARG. See? All of them are back. If you try CLST in the HP41, LastX will bring the last X-register value used by a modifying function. CLST does not update or clear Lastx register.
It is much important being aware of these facts when translating programs from the HP41 to the HP48 (this is the English-version of the title of my book, "Da HP41 para a HP48", written in Portuguese and edited in Brazil, only). Anyway, I can try helping you with specific topics, if needed.
E-mail me.
|