diff options
Diffstat (limited to 'lopcodes.h')
| -rw-r--r-- | lopcodes.h | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.h,v 1.47 2000/03/09 13:57:37 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.48 2000/03/10 18:37:44 roberto Exp roberto $ |
| 3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -20,8 +20,8 @@ | |||
| 20 | type 3: 1st unsigned argument in the higher 16 bits (`A') | 20 | type 3: 1st unsigned argument in the higher 16 bits (`A') |
| 21 | 2nd unsigned argument in the middle 8 bits (`B') | 21 | 2nd unsigned argument in the middle 8 bits (`B') |
| 22 | 22 | ||
| 23 | The signed argument is represented in excess 2^23; that is, the Number value | 23 | The signed argument is represented in excess 2^23; that is, the number |
| 24 | is the usigned value minus 2^23. | 24 | value is the usigned value minus 2^23. |
| 25 | ===========================================================================*/ | 25 | ===========================================================================*/ |
| 26 | 26 | ||
| 27 | #define SIZE_INSTRUCTION 32 | 27 | #define SIZE_INSTRUCTION 32 |
| @@ -92,7 +92,7 @@ OP_END,/* - - (return) */ | |||
| 92 | OP_RETURN,/* U - (return) */ | 92 | OP_RETURN,/* U - (return) */ |
| 93 | 93 | ||
| 94 | OP_CALL,/* A B v_n-v_1 f(at a) r_b-r_1 f(v1,...,v_n) */ | 94 | OP_CALL,/* A B v_n-v_1 f(at a) r_b-r_1 f(v1,...,v_n) */ |
| 95 | OP_TAILCALL,/* A B v_a-v_1 f (return) f(v1,...,v_a) */ | 95 | OP_TAILCALL,/* A B v_n-v_1 f(at a) (return) f(v1,...,v_n) */ |
| 96 | 96 | ||
| 97 | OP_PUSHNIL,/* U - nil_1-nil_u */ | 97 | OP_PUSHNIL,/* U - nil_1-nil_u */ |
| 98 | OP_POP,/* U a_u-a_1 - */ | 98 | OP_POP,/* U a_u-a_1 - */ |
| @@ -158,7 +158,7 @@ OP_SETLINE/* U - - LINE=u */ | |||
| 158 | 158 | ||
| 159 | 159 | ||
| 160 | #define RFIELDS_PER_FLUSH 32 /* records (SETMAP) */ | 160 | #define RFIELDS_PER_FLUSH 32 /* records (SETMAP) */ |
| 161 | #define LFIELDS_PER_FLUSH 64 /* FPF - lists (SETLIST) (<=MAXARG_B) */ | 161 | #define LFIELDS_PER_FLUSH 64 /* FPF - lists (SETLIST) (<=MAXARG_B) */ |
| 162 | 162 | ||
| 163 | 163 | ||
| 164 | #endif | 164 | #endif |
