Assuming the array is already in memory then use mload to copy the entire array contents to the stack and then mstore that value starting at the current free memory pointer (remember to update the free memory pointer at the end). Its worth testing this out using Remix, of course!
How can we do deep copy of array in Yul ? (Not just the pointer
)
Assuming the array is already in memory then use mload to copy the entire array contents to the stack and then mstore that value starting at the current free memory pointer (remember to update the free memory pointer at the end). Its worth testing this out using Remix, of course!