Skip to content

Add ability to reference part of a word-sized constant in push instructions #2012

@PhilippGackstatter

Description

@PhilippGackstatter

Add ability to reference part of a word-sized constant (in this context created with the mechanism from #2011) in push instructions, e.g.:

# see issue 2011
const.METADATA_SLOT_NAME="miden::basic_fungible_faucet::metadata"

begin
    # push the first two elements of the word onto the stack
    push.METADATA_SLOT_NAME[0..2]
end

Context: 0xMiden/miden-base#1394 (reply in thread)

Metadata

Metadata

Assignees

Labels

assemblyRelated to Miden assembly

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions