@@ -287,8 +287,8 @@ that were dropped after being copied into memory during module instantiation.
287
287
Copy data from a source memory region to destination region; these regions may
288
288
overlap: the copy is performed as if the source region was first copied to a
289
289
temporary buffer, then the temporary buffer is copied to the destination
290
- region. This instruction has an immediate argument of which memory to operate
291
- on, and it must be zero for now .
290
+ region. This instruction has two immediate arguments: the source and
291
+ destination memory indices. They currently both must be zero.
292
292
293
293
The instruction has the signature ` [i32 i32 i32] -> [] ` . The parameters are, in order:
294
294
@@ -355,11 +355,11 @@ instr ::= ...
355
355
| ---- | ---- | ---- | ---- |
356
356
| ` memory.init ` | ` 0xfc 0x08 ` | ` memory:0x00 ` , ` segment:varuint32 ` | :thinking : copy from a passive data segment to linear memory |
357
357
| ` memory.drop ` | ` 0xfc 0x09 ` | ` segment:varuint32 ` | :thinking : prevent further use of passive data segment |
358
- | ` memory.copy ` | ` 0xfc 0x0a ` | ` memory :0x00` | :thinking : copy from one region of linear memory to another region |
358
+ | ` memory.copy ` | ` 0xfc 0x0a ` | ` memory_src:0x00 ` ` memory_dst :0x00` | :thinking : copy from one region of linear memory to another region |
359
359
| ` memory.fill ` | ` 0xfc 0x0b ` | ` memory:0x00 ` | :thinking : fill a region of linear memory with a given byte value |
360
360
| ` table.init ` | ` 0xfc 0x0c ` | ` table:0x00 ` , ` segment:varuint32 ` | :thinking : copy from a passive element segment to a table |
361
361
| ` table.drop ` | ` 0xfc 0x0d ` | ` segment:varuint32 ` | :thinking : prevent further use of a passive element segment |
362
- | ` table.copy ` | ` 0xfc 0x0e ` | ` table :0x00` | :thinking : copy from one region of a table to another region |
362
+ | ` table.copy ` | ` 0xfc 0x0e ` | ` table_src:0x00 ` ` table_dst :0x00` | :thinking : copy from one region of a table to another region |
363
363
364
364
### ` DataCount ` section
365
365
0 commit comments