Skip to content

Commit

Permalink
Move TVM Instructions content list above the SearchField
Browse files Browse the repository at this point in the history
  • Loading branch information
krau5 committed Mar 8, 2024
1 parent c2c2716 commit 6c4f2af
Show file tree
Hide file tree
Showing 11 changed files with 144 additions and 131 deletions.
26 changes: 13 additions & 13 deletions src/pages/learn/tvm-instructions/instructions/app-specific.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import { appSpecificOpcodes as opcodes } from '@site/src/data/opcodes';

# Application-Specific Primitives

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -39,6 +26,19 @@ import { appSpecificOpcodes as opcodes } from '@site/src/data/opcodes';
...
* [Exit From TVM Instruction Full Screen Mode](/learn/tvm-instructions/tvm-overview)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Application-Specific Primitives
### Gas-related primitives
| xxxxxxx<br/>Opcode | xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/>Fift syntax | xxxxxxxxxxxxxxxxx<br/>Stack | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/>Description | xxxx<br/>Gas |
Expand Down
26 changes: 13 additions & 13 deletions src/pages/learn/tvm-instructions/instructions/arithmetic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import { arithmeticOpcodes as opcodes } from '@site/src/data/opcodes';

# Arithmetic primitives

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -36,6 +23,19 @@ import { arithmeticOpcodes as opcodes } from '@site/src/data/opcodes';
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Arithmetic primitives
### Addition, subtraction, multiplication

Expand Down
26 changes: 13 additions & 13 deletions src/pages/learn/tvm-instructions/instructions/cell-manipulation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import { cellManipulationOpcodes as opcodes } from '@site/src/data/opcodes';

# Cell Primitives

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -36,6 +23,19 @@ import { cellManipulationOpcodes as opcodes } from '@site/src/data/opcodes';
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Cell Primitives
### Cell serialization primitives

Expand Down
26 changes: 13 additions & 13 deletions src/pages/learn/tvm-instructions/instructions/constant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import { constantOpcodes as opcodes } from '@site/src/data/opcodes';

# Constant or Literal Primitives

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -36,6 +23,19 @@ import { constantOpcodes as opcodes } from '@site/src/data/opcodes';
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Constant or Literal Primitives
### Integer and Boolean Constants

Expand Down
26 changes: 13 additions & 13 deletions src/pages/learn/tvm-instructions/instructions/control-flow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import { continuationOpcodes as opcodes } from '@site/src/data/opcodes';

# Continuation and control flow primitives

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -36,6 +23,19 @@ import { continuationOpcodes as opcodes } from '@site/src/data/opcodes';
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Continuation and control flow primitives
### Unconditional control flow primitives

Expand Down
26 changes: 13 additions & 13 deletions src/pages/learn/tvm-instructions/instructions/data-comparison.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import { comparisonOpcodes as opcodes } from '@site/src/data/opcodes';

# Comparison Primitives

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -36,6 +23,19 @@ import { comparisonOpcodes as opcodes } from '@site/src/data/opcodes';
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Comparison Primitives
### Integer comparison

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ import { dictionaryManipulationOpcodes as opcodes } from '@site/src/data/opcodes

The gas consumption of most dictionary operations is not fixed, it depends on the contents of the given dictionary.

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -38,6 +25,19 @@ The gas consumption of most dictionary operations is not fixed, it depends on th
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Dictionary Manipulation Primitives

### Dictionary creation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import { exceptionOpcodes as opcodes } from '@site/src/data/opcodes';

# Exception Generating and Handling

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -36,6 +23,19 @@ import { exceptionOpcodes as opcodes } from '@site/src/data/opcodes';
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

## Exception Generating and Handling

| xxxxxxx<br/>Opcode | xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/>Fift syntax | xxxxxxxxxxxxxxxxx<br/>Stack | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br/>Description | xxxx<br/>Gas |
Expand Down
15 changes: 15 additions & 0 deletions src/pages/learn/tvm-instructions/instructions/miscellaneous.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ However, when invoked in a TVM instance with debug mode enabled, these primitive
[`DEBUG`](#instr-debug) and [`DEBUGSTR`](#instr-debugstr) are the two debug primitives, they cover all opcodes that start with `FE`.
Other primitives listed here have opcodes from the same set. When debug is enabled, they have their specified effects. When debug is disabled, they behave as [`NOP`](#instr-nop).

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
* [Stack Manipulation](/learn/tvm-instructions/instructions/stack-manipulation)
* [Tuple, List and Null](/learn/tvm-instructions/instructions/tuple-list-null)
* [Constants and Literals](/learn/tvm-instructions/instructions/constant)
* [Arithmetic Operations](/learn/tvm-instructions/instructions/arithmetic)
* [Data Comparison](/learn/tvm-instructions/instructions/data-comparison)
* [Cell Manipulation](/learn/tvm-instructions/instructions/cell-manipulation)
* [Continuation and Control Flow](/learn/tvm-instructions/instructions/control-flow)
* [Exception Generation and Handling](/learn/tvm-instructions/instructions/exception-gen-and-handling)
* [Dictionary Manipulation](/learn/tvm-instructions/instructions/dictionary-manipulation)
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ import { stackManipulationOpcodes as opcodes } from '@site/src/data/opcodes';

Here `0 <= i,j,k <= 15` if not stated otherwise.

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### TVM Instructions Content List

* [Overview](/learn/tvm-instructions/instructions)
Expand All @@ -38,6 +25,18 @@ Here `0 <= i,j,k <= 15` if not stated otherwise.
* [Application-specific Primitives](/learn/tvm-instructions/instructions/app-specific)
* [Miscellaneous](/learn/tvm-instructions/instructions/miscellaneous)

<SearchField
data={opcodes}
searchBy="doc_fift"
placeholder="Search for an opcode"
showKeys={[
{ key: 'doc_opcode', name: 'Opcode' },
{ key: 'doc_fift', name: 'Fift syntax' },
{ key: 'doc_stack', name: 'Stack' },
{ key: 'doc_description', name: 'Description', hasMarkdown: true },
{ key: 'doc_gas', name: 'Gas' },
]}
/>

### Basic stack manipulation primitives

Expand Down
Loading

0 comments on commit 6c4f2af

Please sign in to comment.