Some bit masking tricks (written in Yul) that we will need to read and write state variables that are packed into a single slot.
Playlist
• EVM
0:00 Intro
3:13 Bit masking 16 bits of 1s
5:53 All 0s except 16 bits of 1s in the middle
8:03 All 1s except 16 bits of zeros in the middle
Code
https://solidity-by-example.org/evm/s...
Take a course
https://www.smartcontract.engineer/
Remix
https://remix.ethereum.org
#Solidity #SmartContract #Ethereum #スマートコントラクト
Follow
https://odysee.com/@SmartContractProg...
/ programmersmart
/ discord
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com