HP50g: local LBL and GOTO in user or sysRPL
|
09-08-2016, 06:25 AM
Post: #8
|
|||
|
|||
RE: HP50g: local LBL and GOTO in user or sysRPL
Hello,
As stated above, ASM goto are not a problem. (SYS)RPL goto do exist natively, but require fix address which does not work here... Relative GOTO can be implemented in ASM in a (SYS)RPL program using arithmetics on the D0 pointer. CODE AD0EX LC(5) dest-endcode A+C.A AD0EX RPL *endcode ENDCODE (sys)rpn here!!! LABEL dest Note that if you know that the distance between the 2 items is not long, you can use directly D0+(dest-endcode) (if my memory serves me well) but since arithmetic on pointers is limited to +/- 16, if the distance is large, it can be problematic. Note that this type of GOTO can NOT exit (sys)RPL loops and program structures!!!! so be careful!!! Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)