lua-users home
lua-l archive

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


On Sun, Jun 7, 2020, 12:58 AM Egor Skriptunoff <egor.skriptunoff@gmail.com> wrote:
On Sun, Jun 7, 2020 at 5:49 AM Baozeng wrote:
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.

RK(B) encodes either register or constant (256 registers and 256 constants, 9 bits in total)
If your B is 8 bits then only 128 registers are addressable?

As I described, Lua 5.4 has only 8 bits for B. It can still address 256 registers because it uses separate instructions for constants.