Skip to content

feat(chisel): add in-line assembly { .. } mode #4963

@kadenzipfel

Description

@kadenzipfel

Component

Chisel

Describe the feature you would like

I most commonly find myself using chisel to identify the result of assembly logic, but find it requires an extra step to work with, i.e. if I want to get the result of something simple, like not(0), I have to do something like:

> uint256 a
> assembly { a := not(0) }
> a

Instead, it would be super useful if I could somehow indicate that I'm passing assembly logic directly and to output the value of that logic, effectively doing the above behind the scenes

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-chiselCommand: chiselP-normalPriority: normalT-featureType: featureT-post-V1Area: to tackle after V1

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions