Skip to content
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

feat(docs): asm functions #1061

Merged
merged 26 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
385c0d0
fix(docs): correct function signatures
novusnota Nov 19, 2024
1738dff
fix(docs): "mutable" -> "mutation" functions
novusnota Nov 19, 2024
d5de05d
feat(docs): `asm`-functions
novusnota Nov 19, 2024
9c4c71b
feat(docs): rewrote the method ID section to remove logical jumps and…
novusnota Nov 19, 2024
7263c88
chore: retroactive CHANGELOG edit
novusnota Nov 19, 2024
7157a2e
Update docs/src/content/docs/book/import.mdx
novusnota Nov 20, 2024
0dd10fe
fix: apply suggestions from code review
novusnota Nov 20, 2024
558387c
typo
novusnota Nov 20, 2024
2070ae3
Merge branch 'main' into closes-1011-asm-funs
novusnota Nov 20, 2024
71a7469
fix: adjust descriptions after code review
novusnota Nov 20, 2024
ab143a6
feat: described the stack, described Tact-flavored assembly
novusnota Nov 22, 2024
7e56f85
Merge branch 'main' into closes-1011-asm-funs
novusnota Nov 24, 2024
720ab55
fix: add note that Tact assembly will be available in v1.6
novusnota Nov 24, 2024
c2580ea
intermediate commit
novusnota Dec 5, 2024
71a0da8
Merge branch 'main' into closes-1011-asm-funs
novusnota Dec 11, 2024
6a19446
changes, changes, changes (very close to finishing the page)
novusnota Dec 12, 2024
b4efe8e
DONE! Whew
novusnota Dec 18, 2024
bb6aaca
Merge branch 'main' into closes-1011-asm-funs
novusnota Dec 18, 2024
18759b7
Merge branch 'main' into closes-1011-asm-funs
novusnota Dec 18, 2024
3306421
Changes after the code review
novusnota Dec 18, 2024
49b309e
Merge branch 'main' into closes-1011-asm-funs
novusnota Dec 18, 2024
56c8c64
chore(docs): update to the latest non-breaking-change version of Star…
novusnota Dec 18, 2024
fac8ef7
Change descriptions after the review
novusnota Dec 20, 2024
ce7b2bb
Merge branch 'main' into closes-1011-asm-funs
novusnota Dec 20, 2024
8c00f78
Remove stuff
novusnota Dec 20, 2024
dfa35c9
Remove more stuff
novusnota Dec 20, 2024
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
Prev Previous commit
Next Next commit
typo
  • Loading branch information
novusnota committed Nov 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 558387cdf0fc61468c8c5cbb1704ce84948ac08c
4 changes: 2 additions & 2 deletions docs/src/content/docs/book/functions.mdx
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ Since the bodies of `asm{:tact}` functions do not contain Tact statements, any d
asm fun identity(x: Int): Int { }

/// COMPILATION ERROR!
/// The `boc` is not recognized as a parameter,
/// The `BOC` is not recognized as a parameter,
/// but instead is interpreted as a non-existent TVM instruction
asm fun bocchiThe(BOC: Cell): Cell { BOC }

@@ -222,7 +222,7 @@ asm(-> 1 0) extends mutates fun asmLoadCoins(self: Slice): Int { LDVARUINT16 }
// and not as bottom-up representation of stack values
novusnota marked this conversation as resolved.
Show resolved Hide resolved

// Changing the order of return values while explicitly stating
// the default order of arguments
// the default order of arguments as it is
asm(self len -> 1 0) extends fun asmLoadInt(self: Slice, len: Int): SliceInt { LDIX }

// Used to map onto values placed by LDIX on the stack in reversed order
Loading