mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-29 18:17:55 +00:00
13 lines
250 B
Solidity
13 lines
250 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.24;
|
|
|
|
contract MStore8 {
|
|
function mStore8(uint value) public pure returns (uint256 word) {
|
|
assembly {
|
|
mstore8(0x80, value)
|
|
word := mload(0x80)
|
|
}
|
|
}
|
|
}
|