Skip to main content
gamedev.net
🔒 Locked

-Assembler question

Started by Slug 1 reply 400+ views
Original Post
Slug
Slug
I need help to understand how the stack push the parameter when a funtion is calling; When you call a function like this for example: SomeFunc(float x, float y, float z) { x =+ 5; y =+ 5; z =+ 5; ... } At what stack pointer sp is pointing now, how can i make it point to x ? And can you show me how to use the push and pop instruction please? Triple thanx in advance!
nmi
nmi
Is this a repost ? I think I already read a thread like this.
iMalc
iMalc
[quote]Give a man a fish...

I think you should download the source code for gcc and start playing with it if you want to see how these things work.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.