Can 50g sysRPL jump to lables?
|
10-24-2018, 05:34 AM
Post: #7
|
|||
|
|||
RE: Can 50g sysRPL jump to lables?
Hello,
As a genera rule, GOTOs can jump to any places in the address space. In Saturn ASM, GOTO can do "relative" jumps, meaning it will add/substract n from the current program counter (with a limit of 16 bits = +/-16Kb on the saturn) and the saturn also has a "full" address space fixed address destination (GOTOVL? I do not even remember! That was over 10 years of my life :-( sniff... am I confusing with the GOSUB version (GOSBVL)) In System RPL, the GOTO instruction can only jump to a specific address. It is similar with Intel or ARM CPU. They have versions of GOTOs that are relatives and others that are absolute.... In all these "low level cases", you can jump ANYWHERE in memory... When working in non Asm languages that HAVE GOTOs, GOTOs are always limited to jumping in the current function because of the aforementionned stack management... (some non stacked based languages such as Basic 1.0 being outsiders of course) 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)