diff --git a/evm/src/cpu/kernel/asm/memory/memcpy.asm b/evm/src/cpu/kernel/asm/memory/memcpy.asm index cc872b1088..108b7c6f18 100644 --- a/evm/src/cpu/kernel/asm/memory/memcpy.asm +++ b/evm/src/cpu/kernel/asm/memory/memcpy.asm @@ -54,7 +54,7 @@ memcpy_finish: %%after: %endmacro -// Similar logic than memcpy, but optimized for copying sequences of bytes. +// Similar logic to memcpy, but optimized for copying sequences of bytes. global memcpy_bytes: // stack: DST, SRC, count, retdest DUP7 @@ -123,4 +123,4 @@ memcpy_bytes_finish: %stack (dst: 3, src: 3, count) -> (dst, src, count, %%after) %jump(memcpy_bytes) %%after: -%endmacro \ No newline at end of file +%endmacro diff --git a/evm/src/cpu/kernel/asm/memory/syscalls.asm b/evm/src/cpu/kernel/asm/memory/syscalls.asm index 3548930c36..1eb3a80498 100644 --- a/evm/src/cpu/kernel/asm/memory/syscalls.asm +++ b/evm/src/cpu/kernel/asm/memory/syscalls.asm @@ -95,7 +95,7 @@ calldataload_large_offset: GET_CONTEXT %stack (context, kexit_info, dest_offset, offset, size) -> (context, @SEGMENT_MAIN_MEMORY, dest_offset, context, $segment, offset, size, wcopy_after, kexit_info) - %jump(memcpy) + %jump(memcpy_bytes) %endmacro wcopy_empty: @@ -152,7 +152,7 @@ global sys_returndatacopy: GET_CONTEXT %stack (context, kexit_info, dest_offset, offset, size) -> (context, @SEGMENT_MAIN_MEMORY, dest_offset, context, @SEGMENT_RETURNDATA, offset, size, wcopy_after, kexit_info) - %jump(memcpy) + %jump(memcpy_bytes) returndatacopy_empty: %stack (kexit_info, dest_offset, offset, size) -> (kexit_info)