Post Reply 
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Can 50g sysRPL jump to lables? - BlackMi - 10-22-2018, 07:09 AM
RE: Can 50g sysRPL jump to lables? - 3298 - 10-22-2018, 10:11 AM
RE: Can 50g sysRPL jump to lables? - cyrille de brébisson - 10-24-2018 05:34 AM
RE: Can 50g sysRPL jump to lables? - 3298 - 10-29-2018, 01:36 PM
RE: Can 50g sysRPL jump to lables? - 3298 - 10-30-2018, 10:49 AM
RE: Can 50g sysRPL jump to lables? - 3298 - 10-30-2018, 03:36 PM
RE: Can 50g sysRPL jump to lables? - 3298 - 10-30-2018, 04:54 PM



User(s) browsing this thread: 1 Guest(s)