lua-users home
lua-l archive

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


On 4 January 2015 at 06:41, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> What I mean is this: with the current design, A always addresses
> a register whereas B and C may address either a register or a
> constant. One bit is needed to specify which. Therefore, B and
> C must be one bit longer than A. At preset we have 8,9,9 leaving
> 6 bits for the opcode. What I say is that if you want more bits
> for the opcode the next possibility is 7,8,8 leving 9 bits.

Ok thanks - got it. I suppose I will need to change settings like
MAXREGS, MAXVARS.

> If you need more opcodes, I would go for one extra instruction
> that exploits EXTRA_ARG to give the extra functionality.
>

Yes I was wondering if there was a standard way to have a two word
instruction - that way
I can maintain bytecode compatibility with Lua.

Thanks and Regards
Dibyendu