Jump to content
IGNORED

Question on DPC+ stack


pacgreg

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

mainloop

; Animation

stack 100

pull frame

; (CODE HERE)

stack 99

push frame

 

;music

stack 101

pull duration

; (CODE HERE)

stack 100

push duration

 

drawscreen

goto mainloop

 

Thanks

Greg

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.

Guest
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.

Loading...
  • Recently Browsing   0 members

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