Skip to content

Commit 7ea73f7

Browse files
authored
Add memory index for {memory,table}.init (WebAssembly#33)
1 parent 4123d1e commit 7ea73f7

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
@@ -161,7 +161,7 @@ Each variant of :ref:`memory instruction <syntax-instr-memory>` is encoded with
161161
\hex{3E}~~m{:}\Bmemarg &\Rightarrow& \I64.\STORE\K{32}~m \\ &&|&
162162
\hex{3F}~~\hex{00} &\Rightarrow& \MEMORYSIZE \\ &&|&
163163
\hex{40}~~\hex{00} &\Rightarrow& \MEMORYGROW \\ &&|&
164-
\hex{FC}~\hex{08}~~x{:}\Bdataidx &\Rightarrow& \MEMORYINIT~x \\ &&|&
164+
\hex{FC}~\hex{08}~~\hex{00}~x{:}\Bdataidx &\Rightarrow& \MEMORYINIT~x \\ &&|&
165165
\hex{FC}~\hex{09}~~x{:}\Bdataidx &\Rightarrow& \MEMORYDROP~x \\ &&|&
166166
\hex{FC}~\hex{0A}~~\hex{00} &\Rightarrow& \MEMORYCOPY \\ &&|&
167167
\hex{FC}~\hex{0B}~~\hex{00} &\Rightarrow& \MEMORYFILL \\
@@ -183,7 +183,7 @@ Each variant of :ref:`table instruction <syntax-instr-table>` is encoded with a
183183
.. math::
184184
\begin{array}{llclll}
185185
\production{instruction} & \Binstr &::=& \dots \\ &&|&
186-
\hex{FC}~\hex{0C}~~x{:}\Belemidx &\Rightarrow& \TABLEINIT~x \\ &&|&
186+
\hex{FC}~\hex{0C}~~\hex{00}~x{:}\Belemidx &\Rightarrow& \TABLEINIT~x \\ &&|&
187187
\hex{FC}~\hex{0D}~~x{:}\Belemidx &\Rightarrow& \TABLEDROP~x \\ &&|&
188188
\hex{FC}~\hex{0E}~~\hex{00} &\Rightarrow& \TABLECOPY \\
189189
\end{array}

0 commit comments

Comments
 (0)