[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Adding an opcode
- From: Dibyendu Majumdar <mobile@...>
- Date: Sun, 4 Jan 2015 22:26:25 +0000
On 4 January 2015 at 06:41, Dirk Laurie <firstname.lastname@example.org> 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
> 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