Skip to content

Commit

Permalink
Fix mem instruction parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
virgil-serbanuta committed Jan 27, 2025
1 parent 5703267 commit 36c8623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pykwasm/src/pykwasm/scripts/binary-parser-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ def with_prefix(self, p: bytes) -> 'InstrConfig':
InstrConfig('I64_STORE_8', b'\x3C', [constructor_arg('i64'), constructor_arg('store8'), 'MemArg', ], '#store'),
InstrConfig('I64_STORE_16', b'\x3D', [constructor_arg('i64'), constructor_arg('store16'), 'MemArg', ], '#store'),
InstrConfig('I64_STORE_32', b'\x3E', [constructor_arg('i64'), constructor_arg('store32'), 'MemArg', ], '#store'),
InstrConfig('MEM_SIZE', b'\x3F', [], 'memory.size'),
InstrConfig('MEM_GROW', b'\x40', [], 'memory.grow'),
InstrConfig('MEM_SIZE', b'\x3F', [parse_constant(b'\x00')], 'memory.size'),
InstrConfig('MEM_GROW', b'\x40', [parse_constant(b'\x00')], 'memory.grow'),
InstrConfig('MEM_INIT', b'\xFC\x08', ['UnsignedInt', parse_constant(b'\x00'), ], not_implemented()),
InstrConfig('DATA_DROP', b'\xFC\x09', ['UnsignedInt', ], not_implemented()),
InstrConfig('MEM_COPY', b'\xFC\x0A', [parse_constant(b'\x00'), parse_constant(b'\x00'), ], 'memory.copy'),
Expand Down

0 comments on commit 36c8623

Please sign in to comment.