lua-users home
lua-l archive

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


Hello Egor,

The register is represented  by `A`,  which is still 8 bits.  I have not changed it.  Only `B` is changed from 9 bits to 8 bits. and `C` is changed from 9 bits to 8 bits. 
So I think it will not affect the registers. Am I right?  Thank you in advance.


Egor Skriptunoff <egor.skriptunoff@gmail.com> 于2020年6月7日周日 上午3:10写道:
On Sat, Jun 6, 2020 at 4:09 PM Baozeng wrote:
As we know, Lua instruction format is the opcode with 6 bits,  `A` with 8 bits, `B` and `C` with 9 bits (together 32 bits)
I custom opcode with 8 bits, `A` with 8 bits,  `B` and `C` with 8 bits.


Does this mean your VM has 127 registers instead of 255?
A function containing 30 local variables and a matrix constructor 50x50 will fail to compile.


--
     Best Regards,
     Baozeng Ding