Post Reply 
HP50g: local LBL and GOTO in user or sysRPL
09-06-2016, 06:10 PM
Post: #3
RE: HP50g: local LBL and GOTO in user or sysRPL
(09-06-2016 05:31 PM)Han Wrote:  Was your question in the context of RPL or SysRPL? It's fairly easy to do in assembly, so I imagine that you probably meant the first two. Off the top of my head, it can be done using a hybrid of RPL and assembly. If you are comfortable with assembly, you can encapsulate your entire code into a code object that changes the runstream to the first RPL word. This would allow you to inject assembly labels and make use of the assembly GOTO (and related) opcodes.

Scratch that... given that the jumps are likely all relative, GOTOs would likely not work unless stored in fixed memory (possible, but lots of work). You could, however, use PC=A and use relative jumps that are calculated during compile time (still requires some assembly language, obviously).

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP50g: local LBL and GOTO in user or sysRPL - Han - 09-06-2016 06:10 PM



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