---
title: "Discussion on \"Learning Dark Arts of Yul Part II\" | Hashnode"
description: "Discussion on \"Learning Dark Arts of Yul Part II\". Reading a Slot in Yul\nLets start with a Coding Example\ncontract offsetAndShifting{\n    uint128 public a = 22;\n    uint96 public b =15;\n    uint16 public c = 8;\n    uint8 public d = 1;\n\n    function readValueBySlot(uint256 slot) external view return(b..."
url: "https://hashnode.com/posts/learning-dark-arts-of-yul-part-ii/6771784e79ad86653c05a696"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Learning Dark Arts of Yul Part II](https://mansoor-eth.hashnode.dev/learning-dark-arts-of-yul-part-ii?utm_source=hashnode&utm_medium=feed)

Reading a Slot in Yul Lets start with a Coding Example contract offsetAndShifting{ uint128 public a = 22; uint96 public b =15; uint16 public c = 8; uint8 public d = 1; function readValueBySlot(uint256 slot) external view return(b...

Dec 29, 2024 · 2 min read · mansoor-eth.hashnode.dev  
Read the article

-   [#solidity](https://hashnode.com/tag/solidity)
-   [#evm](https://hashnode.com/tag/evm)
-   [#yul](https://hashnode.com/tag/yul)
-   [#blockchain](https://hashnode.com/tag/blockchain)
-   [#web30](https://hashnode.com/tag/web30)

## Written by

[Mansoor Butt](https://hashnode.com/@MansoorEth)

@MansoorEth · Karachi,Pakistan

  
[View profile](https://hashnode.com/@MansoorEth)

Software Engineer building Smart Contracts

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
