Difference between revisions of "Talk:SCO"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Maybe it is a silly question, but if there is a push onto the stack, how the numbers are pop'ed back? Since SCO seems to be similar to ASM (I have not yet took a look to scripts, only to this article) I think it is worth to mention this in the article (if there is an awnser, what I hope ^^). --[[User:Aschratt|Aschratt]] 20:17, 5 February 2009 (UTC)
 
Maybe it is a silly question, but if there is a push onto the stack, how the numbers are pop'ed back? Since SCO seems to be similar to ASM (I have not yet took a look to scripts, only to this article) I think it is worth to mention this in the article (if there is an awnser, what I hope ^^). --[[User:Aschratt|Aschratt]] 20:17, 5 February 2009 (UTC)
 
:The list of opcodes is incomplete, there are ones that pop numbers back.[[User:Seemann|Seemann]] 00:05, 6 February 2009 (UTC)
 
:The list of opcodes is incomplete, there are ones that pop numbers back.[[User:Seemann|Seemann]] 00:05, 6 February 2009 (UTC)
 +
::Well, since they only seem to be used as function parameters, there is no real point in popping them from the stack (since called functions do that internally), is there? Although, how are return values handled? Can there be multiple return values? --[[User:Steve-m|Steve-m]] 00:48, 6 February 2009 (UTC)

Revision as of 00:48, 6 February 2009

Maybe it is a silly question, but if there is a push onto the stack, how the numbers are pop'ed back? Since SCO seems to be similar to ASM (I have not yet took a look to scripts, only to this article) I think it is worth to mention this in the article (if there is an awnser, what I hope ^^). --Aschratt 20:17, 5 February 2009 (UTC)

The list of opcodes is incomplete, there are ones that pop numbers back.Seemann 00:05, 6 February 2009 (UTC)
Well, since they only seem to be used as function parameters, there is no real point in popping them from the stack (since called functions do that internally), is there? Although, how are return values handled? Can there be multiple return values? --Steve-m 00:48, 6 February 2009 (UTC)