lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> On Mon, Apr 18, 2011 at 7:48 PM, Roberto Ierusalimschy
> <roberto@inf.puc-rio.br> wrote:
> >> - ,opmode(0, 1, OpArgR, OpArgN, iABC)         /* OP_LOADNIL */
> >> + ,opmode(0, 1, OpArgU, OpArgN, iABC)         /* OP_LOADNIL */
> >
> > There seems to be a problem here. OP_LOADNIL uses the macro RB like
> > any other instruction that uses B as a register, and this macro
> > asserts that the instruction has OpArgR for B. (I would prefer
> > to leave this OpArgR as it is...)
> 
> OP_LOADNIL does make use the RB macro. [...]

My main point was that the code you sent will not work with assertions on.

-- Roberto