diff options
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.4 1997/09/22 20:53:20 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.5 1997/09/24 19:43:11 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 | */ |
@@ -76,6 +76,7 @@ GETTABLE,/* i t t[i] */ | |||
76 | PUSHSELFB,/* b t t t[CNST[b]] */ | 76 | PUSHSELFB,/* b t t t[CNST[b]] */ |
77 | PUSHSELF,/* w t t t[CNST[w]] */ | 77 | PUSHSELF,/* w t t t[CNST[w]] */ |
78 | 78 | ||
79 | CREATEARRAYB,/* b - newarray(size = b) */ | ||
79 | CREATEARRAY,/* w - newarray(size = w) */ | 80 | CREATEARRAY,/* w - newarray(size = w) */ |
80 | 81 | ||
81 | SETLOCAL0,/* x - LOC[0]=x */ | 82 | SETLOCAL0,/* x - LOC[0]=x */ |
@@ -118,10 +119,12 @@ NOTOP,/* x (x==nil)? 1 : nil */ | |||
118 | /* NOTICE: all jumps are relative to the position following the opcode */ | 119 | /* NOTICE: all jumps are relative to the position following the opcode */ |
119 | ONTJMP,/* b x (x!=nil)? x : - (x!=nil)? PC+=b */ | 120 | ONTJMP,/* b x (x!=nil)? x : - (x!=nil)? PC+=b */ |
120 | ONFJMP,/* b x (x==nil)? x : - (x==nil)? PC+=b */ | 121 | ONFJMP,/* b x (x==nil)? x : - (x==nil)? PC+=b */ |
122 | JMPB,/* b - - PC+=b */ | ||
121 | JMP,/* w - - PC+=w */ | 123 | JMP,/* w - - PC+=w */ |
122 | UPJMPB,/* b - - PC-=b */ | 124 | IFFJMPB,/* b x - (x==nil)? PC+=b */ |
123 | UPJMP,/* w - - PC-=w */ | ||
124 | IFFJMP,/* w x - (x==nil)? PC+=w */ | 125 | IFFJMP,/* w x - (x==nil)? PC+=w */ |
126 | IFTUPJMPB,/* b x - (x!=nil)? PC-=b */ | ||
127 | IFTUPJMP,/* w x - (x!=nil)? PC-=w */ | ||
125 | IFFUPJMPB,/* b x - (x==nil)? PC-=b */ | 128 | IFFUPJMPB,/* b x - (x==nil)? PC-=b */ |
126 | IFFUPJMP,/* w x - (x==nil)? PC-=w */ | 129 | IFFUPJMP,/* w x - (x==nil)? PC-=w */ |
127 | 130 | ||