1,079
edits
m (Fix asm syntax highlighting) |
|||
Line 480: | Line 480: | ||
:<tt>function a(y,z,...) and function b(x,y,z,...)</tt> | :<tt>function a(y,z,...) and function b(x,y,z,...)</tt> | ||
:Since lsp does not support register indirection, we can't just push the variables in a loop (as we would in C). Instead this function is used. In this case, the instruction would be &rest 2, since we want the copying to start from y (inclusive), the second parameter. | :Since lsp does not support register indirection, we can't just push the variables in a loop (as we would in C). Instead this function is used. In this case, the instruction would be &rest 2, since we want the copying to start from y (inclusive), the second parameter. | ||
:Note that the values are copied to the stack '''immediately'''. The <tt><nowiki>& | :Note that the values are copied to the stack '''immediately'''. The <tt><nowiki>&rest_modifier</nowiki></tt> is set to the number of variables pushed afterwards. | ||
edits