diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-23 10:38:38 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-23 10:38:38 -0300 |
commit | c364e9f97ee825be833d50a04a621d58d71af684 (patch) | |
tree | 279d6212d52bb5ab1c8b8f60a87e5b098f9f4918 | |
parent | e3a02e6a9ce0714bf51d20c94b54302bf9939dd8 (diff) | |
download | lua-c364e9f97ee825be833d50a04a621d58d71af684.tar.gz lua-c364e9f97ee825be833d50a04a621d58d71af684.tar.bz2 lua-c364e9f97ee825be833d50a04a621d58d71af684.zip |
LONGARGW (for completeness).
-rw-r--r-- | lopcodes.h | 3 | ||||
-rw-r--r-- | lvm.c | 7 |
2 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.24 1999/02/09 15:58:45 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.25 1999/02/09 18:01:55 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 | */ |
@@ -106,6 +106,7 @@ CALLFUNC,/* b c v_c...v_1 f r_b...r_1 f(v1,...,v_c) */ | |||
106 | SETLINEW,/* w - - LINE=w */ | 106 | SETLINEW,/* w - - LINE=w */ |
107 | SETLINE,/* b - - LINE=b */ | 107 | SETLINE,/* b - - LINE=b */ |
108 | 108 | ||
109 | LONGARGW,/* w (add w*(1<<16) to arg of next instruction) */ | ||
109 | LONGARG /* b (add b*(1<<16) to arg of next instruction) */ | 110 | LONGARG /* b (add b*(1<<16) to arg of next instruction) */ |
110 | 111 | ||
111 | } OpCode; | 112 | } OpCode; |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.48 1999/02/09 15:58:45 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.49 1999/02/09 18:01:55 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -638,8 +638,9 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) { | |||
638 | luaD_lineHook(aux); | 638 | luaD_lineHook(aux); |
639 | break; | 639 | break; |
640 | 640 | ||
641 | case LONGARG: | 641 | case LONGARGW: aux += highbyte(*pc++); |
642 | aux = highbyte(highbyte(*pc++)); | 642 | case LONGARG: aux += *pc++; |
643 | aux = highbyte(highbyte(aux)); | ||
643 | goto switchentry; /* do not reset "aux" */ | 644 | goto switchentry; /* do not reset "aux" */ |
644 | 645 | ||
645 | } | 646 | } |