Update lua_bytecode_reference.rst

pull/81/head
Dibyendu Majumdar 9 years ago
parent 7b557b5239
commit 1246f7740d

@ -61,7 +61,7 @@ Syntax
CALL A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1))
Performs a function call, with register R(A) holding the reference to the function object to be called. Parameters to the function are placed in the registers following R(A). If B is 1, the function has no parameters. If B is 2 or more, there are (B-1) parameters. If B >= 2, then upon entry to the called function, R(A+B-1) will become the ``base``.
Performs a function call, with register R(A) holding the reference to the function object to be called. Parameters to the function are placed in the registers following R(A). If B is 1, the function has no parameters. If B is 2 or more, there are (B-1) parameters. If B >= 2, then upon entry to the called function, R(A+1) will become the ``base``.
If B is 0, the function parameters range from R(A+1) to the top of the stack. This form is used when the
number of parameters to pass is set by the previous VM instruction, which has to be one of '``OP_CALL``' or

Loading…
Cancel
Save