Jump to content

Question on DPC+ stack


Recommended Posts

If I were to say, pull every variable before using it and pushing it back where it came from every time, would that mean I could use the whole thing as variables?

like pulling out data for an animation to a then putting it away and using a again later in the code to pull out music position and put it away each loop will it always be stored in the same place?


I'm guessing this would look somewhat like this

dim a = frame

dim a = duration


; Animation

stack 100

pull frame


stack 99

push frame



stack 101

pull duration


stack 100

push duration



goto mainloop




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...