provide Solidity source for mstore8 tests

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-04-17 12:48:19 +02:00
parent bfcdb8afa9
commit 99d22cde2f
+8
View File
@@ -0,0 +1,8 @@
contract MStore8 {
function mStore8(uint value) public pure returns (uint256 word) {
assembly {
mstore8(0x80, value)
word := mload(0x80)
}
}
}