diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-28 11:18:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-28 11:18:14 -0300 |
commit | c403e456b66ddacf7f8f974323e9cffdfe6365d4 (patch) | |
tree | 2e25027eface85c3156359e4ec182b4a9215903b /ltests.c | |
parent | 6ac7219da31df0238dc33c2d4457f69bfe0c1e79 (diff) | |
download | lua-c403e456b66ddacf7f8f974323e9cffdfe6365d4.tar.gz lua-c403e456b66ddacf7f8f974323e9cffdfe6365d4.tar.bz2 lua-c403e456b66ddacf7f8f974323e9cffdfe6365d4.zip |
New instruction format for SETLIST/NEWTABLE
New instruction format 'ivABC' (a variant of iABC where parameter vC has
10 bits) allows constructors of up to 1024 elements to be coded without
EXTRAARG.
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -697,6 +697,11 @@ static char *buildop (Proto *p, int pc, char *buff) { | |||
697 | GETARG_A(i), GETARG_B(i), GETARG_C(i), | 697 | GETARG_A(i), GETARG_B(i), GETARG_C(i), |
698 | GETARG_k(i) ? " (k)" : ""); | 698 | GETARG_k(i) ? " (k)" : ""); |
699 | break; | 699 | break; |
700 | case ivABC: | ||
701 | sprintf(buff, "%-12s%4d %4d %4d%s", name, | ||
702 | GETARG_A(i), GETARG_vB(i), GETARG_vC(i), | ||
703 | GETARG_k(i) ? " (k)" : ""); | ||
704 | break; | ||
700 | case iABx: | 705 | case iABx: |
701 | sprintf(buff, "%-12s%4d %4d", name, GETARG_A(i), GETARG_Bx(i)); | 706 | sprintf(buff, "%-12s%4d %4d", name, GETARG_A(i), GETARG_Bx(i)); |
702 | break; | 707 | break; |