Open main menu

Difference between revisions of "SCI/Specifications/SCI virtual machine/The Sierra PMachine"

m
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>&rest_@modifier</nowiki></tt> is set to the number of variables pushed afterwards.
: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.




1,079

edits