Post Reply 
Emu48--can I programmatically construct a 'NAME'?
12-23-2022, 11:37 AM (This post was last modified: 12-23-2022 11:39 AM by DavidM.)
Post: #2
RE: Emu48--can I programmatically construct a 'NAME'?
(12-23-2022 04:56 AM)rickster Wrote:  I suppose I could just join 'DW' and 'SKB' yielding 'DW+SKB', but is there a way to get the name I want?

Assuming you've already gotten the pieces ("DW" and "$SKB") as strings on the stack, the following would create the global name I think you are referring to:
Code:
  +                     @ concatenates "DW" and "$SKB"
  "'" SWAP OVER + +     @ encapsulates within single quotes
  STR→                  @ converts the resulting string to global name

This will leave the global name 'DW$SKB' on the stack. If you want to execute DW$SKB instead of leaving its ID on the stack, just omit the second line in the code above (the one commented as "encapsulates within single quotes").
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Emu48--can I programmatically construct a 'NAME'? - DavidM - 12-23-2022 11:37 AM



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