mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-05-01 14:37:56 +00:00
21dd0abb8a
Signed-off-by: xermicus <cyrill@parity.io>
11 lines
224 B
Solidity
11 lines
224 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
contract MStore8 {
|
|
function mStore8(uint value) public pure returns (uint256 word) {
|
|
assembly {
|
|
mstore8(0x80, value)
|
|
word := mload(0x80)
|
|
}
|
|
}
|
|
}
|