Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit a1bfe97

Browse files
authored
[spec] Fix binary immediate order for table/memory.init (#82)
1 parent 774dd1d commit a1bfe97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document/core/binary/instructions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Table Instructions
157157
\hex{FC}~\hex{0F}~~x{:}\Btableidx &\Rightarrow& \TABLEGROW~x \\ &&|&
158158
\hex{FC}~\hex{10}~~x{:}\Btableidx &\Rightarrow& \TABLESIZE~x \\ &&|&
159159
\hex{FC}~\hex{11}~~x{:}\Btableidx &\Rightarrow& \TABLEFILL~x \\
160-
\hex{FC}~\hex{0C}~~x{:}\Btableidx~~y{:}\Belemidx &\Rightarrow& \TABLEINIT~x~y \\ &&|&
160+
\hex{FC}~\hex{0C}~~y{:}\Belemidx~~x{:}\Btableidx &\Rightarrow& \TABLEINIT~x~y \\ &&|&
161161
\hex{FC}~\hex{0D}~~x{:}\Belemidx &\Rightarrow& \ELEMDROP~x \\ &&|&
162162
\hex{FC}~\hex{0E}~~x{:}\Btableidx~~y{:}\Btableidx &\Rightarrow& \TABLECOPY~x~y \\
163163
\end{array}
@@ -214,7 +214,7 @@ Each variant of :ref:`memory instruction <syntax-instr-memory>` is encoded with
214214
\hex{3E}~~m{:}\Bmemarg &\Rightarrow& \I64.\STORE\K{32}~m \\ &&|&
215215
\hex{3F}~~\hex{00} &\Rightarrow& \MEMORYSIZE \\ &&|&
216216
\hex{40}~~\hex{00} &\Rightarrow& \MEMORYGROW \\ &&|&
217-
\hex{FC}~\hex{08}~~\hex{00}~x{:}\Bdataidx &\Rightarrow& \MEMORYINIT~x \\ &&|&
217+
\hex{FC}~\hex{08}~~x{:}\Bdataidx~~\hex{00} &\Rightarrow& \MEMORYINIT~x \\ &&|&
218218
\hex{FC}~\hex{09}~~x{:}\Bdataidx &\Rightarrow& \DATADROP~x \\ &&|&
219219
\hex{FC}~\hex{0A}~~\hex{00}~~\hex{00} &\Rightarrow& \MEMORYCOPY \\ &&|&
220220
\hex{FC}~\hex{0B}~~\hex{00} &\Rightarrow& \MEMORYFILL \\

0 commit comments

Comments
 (0)