Skip to content

links-Update index.html #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions static/sway/std/registers/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="swaydoc"><meta name="description" content="API documentation for the Sway `registers` module in `std`."><meta name="keywords" content="sway, swaylang, sway-lang, registers"><link rel="icon" href="../../static.files/sway-logo.svg"><title>registers in std - Sway</title><link rel="stylesheet" type="text/css" href="../../static.files/normalize.css"><link rel="stylesheet" type="text/css" href="../../static.files/swaydoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../static.files/ayu.css"><link rel="stylesheet" href="../../static.files/ayu.min.css"></head><body class="swaydoc mod"><nav class="sidebar"><a class="sidebar-logo" href="../../std/index.html"><div class="logo-container"><img class="sway-logo" src="../../static.files/sway-logo.svg" alt="logo"></div></a><h2 class="location">Module registers</h2><div class="sidebar-elems"><section><h3><a href="#functions">Functions</a></h3><ul class="block method"><li><a href="fn.overflow.html">overflow</a></li><li><a href="fn.program_counter.html">program_counter</a></li><li><a href="fn.stack_start_ptr.html">stack_start_ptr</a></li><li><a href="fn.stack_ptr.html">stack_ptr</a></li><li><a href="fn.frame_ptr.html">frame_ptr</a></li><li><a href="fn.heap_ptr.html">heap_ptr</a></li><li><a href="fn.error.html">error</a></li><li><a href="fn.global_gas.html">global_gas</a></li><li><a href="fn.context_gas.html">context_gas</a></li><li><a href="fn.balance.html">balance</a></li><li><a href="fn.instrs_start.html">instrs_start</a></li><li><a href="fn.return_value.html">return_value</a></li><li><a href="fn.return_length.html">return_length</a></li><li><a href="fn.flags.html">flags</a></li></ul></section></div></nav><main><div class="width-limiter"><script src="../../search.js" type="text/javascript"></script><script>function onSearchFormSubmit(event){event.preventDefault();const searchQuery=document.getElementById("search-input").value;const url=new URL(window.location.href);if(searchQuery){url.searchParams.set('search',searchQuery)}else{url.searchParams.delete('search')}history.pushState({search:searchQuery},"",url);window.dispatchEvent(new HashChangeEvent("hashchange"))}document.addEventListener('DOMContentLoaded',()=>{const searchbar=document.getElementById("search-input");const searchForm=document.getElementById("search-form");searchbar.addEventListener("keyup",function(event){onSearchFormSubmit(event)});searchbar.addEventListener("search",function(event){onSearchFormSubmit(event)});function onQueryParamsChange(){const searchParams=new URLSearchParams(window.location.search);const query=searchParams.get("search");const searchSection=document.getElementById('search');const mainSection=document.getElementById('main-content');const searchInput=document.getElementById('search-input');if(query){searchInput.value=query;const results=Object.values(SEARCH_INDEX).flat().filter(item=>{const lowerQuery=query.toLowerCase();return item.name.toLowerCase().includes(lowerQuery)});const header=`<h1>Results for ${query}</h1>`;if(results.length>0){const resultList=results.map(item=>{const formattedName=`<span class="type ${item.type_name}">${item.name}</span>`;const name=[...item.module_info,formattedName].join("::");const path=["../..",...item.module_info,item.html_filename].join("/");const left=`<td><span>${name}</span></td>`;const right=`<td><p>${item.preview}</p></td>`;return`<tr onclick="window.location='${path}';">${left}${right}</tr>`}).join('');searchSection.innerHTML=`${header}<table>${resultList}</table>`}else{searchSection.innerHTML=`${header}<p>No results found.</p>`}searchSection.setAttribute("class","search-results");mainSection.setAttribute("class","content hidden")}else{searchSection.setAttribute("class","search-results hidden");mainSection.setAttribute("class","content")}}window.addEventListener('hashchange',onQueryParamsChange);onQueryParamsChange()})</script><nav class="sub"><form id="search-form" class="search-form" onsubmit="onSearchFormSubmit(event)"><div class="search-container"><input id="search-input" class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Search the docs..." type="search"></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a class="mod" href="../index.html">std</a><span>::</span><a class="mod" href="#">registers</a></span></h1></div><details class="swaydoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Functions to expose 14 of the reserved FuelVM registers for ease of use.<br />
Ref: <a href="https://fuellabs.github.io/fuel-specs/master/vm#semantics">https://fuellabs.github.io/fuel-specs/master/vm#semantics</a></p>
Ref: <a href="https://docs.fuel.network/docs/specs/#semantics">https://docs.fuel.network/docs/specs/#semantics</a></p>
</div></details><h2 id="functions">Functions</h2><div class="item-table"><div class="item-row"><div class="item-left Function-item"><a class="fn" href="fn.balance.html">balance</a></div><div class="item-right docblock-short"><p>Get the amount of units of <code>call_frames::msg_asset_id()</code> being sent.</p>
</div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="fn.context_gas.html">context_gas</a></div><div class="item-right docblock-short"><p>Remaining gas in the context.</p>
</div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="fn.error.html">error</a></div><div class="item-right docblock-short"><p>Error codes for particular operations.</p>
Expand All @@ -14,4 +14,4 @@
</div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="fn.return_value.html">return_value</a></div><div class="item-right docblock-short"><p>Return value or pointer.</p>
</div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="fn.stack_ptr.html">stack_ptr</a></div><div class="item-right docblock-short"><p>Memory address on top of current writable stack area (points to free memory).</p>
</div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="fn.stack_start_ptr.html">stack_start_ptr</a></div><div class="item-right docblock-short"><p>Memory address of bottom of current writable stack area.</p>
</div></div></div></section><section id="search" class="search-results"></section></div></main><script src="../../static.files/highlight.js"></script><script>hljs.highlightAll();</script></body></html>
</div></div></div></section><section id="search" class="search-results"></section></div></main><script src="../../static.files/highlight.js"></script><script>hljs.highlightAll();</script></body></html>