Skip to content

Commit

Permalink
new opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
NiTiSon committed Aug 3, 2024
1 parent 0cdbaf4 commit dc12820
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 68 deletions.
5 changes: 4 additions & 1 deletion docs/guidelines/naming-guideline.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Naming guidelines

There no rules rn lol
!!! warning

Site still in developing...
Please wait
16 changes: 1 addition & 15 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,5 @@

!!! warning

Site still in develop...
Site still in developing...
Please wait

## Installation

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum semper velit, quis maximus nisi ornare a. Aliquam commodo mauris et consequat lobortis. Pellentesque semper est id blandit hendrerit. Morbi nisi ex, elementum sit amet urna ut, bibendum fringilla diam. Vivamus purus neque, fermentum vel luctus quis, placerat sed augue. Nam ornare vitae nisi sit amet malesuada. Mauris sed massa purus. Phasellus vitae viverra lectus. Maecenas vehicula odio eros, a tempor velit posuere sed. Sed quis leo et nunc venenatis mattis. Mauris sit amet rutrum tortor. Donec cursus finibus ante non consequat. Maecenas arcu augue, aliquam et venenatis vitae, elementum et diam.

Sed tempor lobortis eros. Praesent at ante eu erat pharetra malesuada ac vel justo. Sed hendrerit porta risus. Aliquam dictum commodo sapien sit amet ultricies. Maecenas nisi diam, luctus id maximus quis, blandit ac lacus. Quisque quam nisl, feugiat quis orci sed, vestibulum faucibus quam. Proin eu placerat arcu, ac iaculis turpis. Vivamus sagittis sodales purus, id blandit metus vehicula eu. Suspendisse interdum, turpis at elementum pellentesque, ligula felis ullamcorper elit, ac tempor enim augue sit amet justo. Suspendisse eu est diam. Aliquam viverra arcu vel velit scelerisque venenatis. Nunc facilisis diam id arcu ultricies, ut vulputate odio pretium. Vestibulum viverra urna sed elit ultricies bibendum in eget erat. Sed ultricies congue libero sit amet elementum. Nunc ullamcorper risus turpis, in luctus turpis dignissim id.

Etiam feugiat vehicula orci in sollicitudin. Proin cursus interdum tempor. Sed ex orci, tincidunt ac volutpat et, egestas sodales dolor. Fusce sit amet turpis ac nisl tincidunt placerat sed vel justo. Fusce auctor interdum risus id lacinia. Cras consequat eget eros id sodales. Vivamus molestie fermentum ligula eget finibus. Nulla facilisi. Donec sagittis nunc et purus feugiat molestie. Ut ac ligula pellentesque, viverra est quis, commodo massa. Nam vitae mauris bibendum, laoreet nunc eu, ultrices ligula. Donec ornare nisi nec lorem commodo, in fermentum felis vehicula.

## Create your first project

Cras vestibulum risus vel mi cursus eleifend. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec posuere arcu at nunc tempus tempus. Nulla blandit nibh sit amet ante imperdiet vehicula. Morbi id pellentesque tortor. Sed ligula elit, ultrices at lorem fermentum, volutpat pulvinar arcu. Suspendisse eu mi a mi auctor tempus ac sit amet tortor. Mauris aliquam vulputate purus at finibus. Aenean sed facilisis metus, sit amet dignissim urna. Nulla eget arcu semper, tempus nulla ut, tristique neque. Suspendisse mattis bibendum congue. Morbi eu luctus dui, sed dictum purus. Pellentesque ac nibh eget enim eleifend congue. Phasellus sit amet elit enim.

Aliquam leo metus, bibendum et mauris a, tempor vehicula purus. Vivamus tempor, nulla mattis ullamcorper vestibulum, ligula turpis euismod nisi, vel dictum quam tortor a felis. Praesent vel mauris a quam dapibus hendrerit in eget erat. Proin sed volutpat velit. Ut elementum fermentum libero. Nam fringilla a lorem ut feugiat. Fusce ac lacus sed turpis sodales tincidunt eu et nisi. Aliquam metus lacus, mattis eget interdum euismod, sagittis interdum orci. Pellentesque varius dignissim volutpat. Nullam venenatis mi eu lacus porta ultrices. Nulla facilisi. Donec dignissim risus ut dui lobortis, ullamcorper ultrices augue consectetur. Vestibulum mollis sem cursus, pharetra massa a, aliquet urna.
6 changes: 6 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Installation

!!! warning

Site still in developing...
Please wait
9 changes: 9 additions & 0 deletions docs/runtime/bytecode/break.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# `break` instruction
Signals the runtime to inform debugger that a break point is been reached

Property|Value
---|---
Alias|`push`
Code|`0x01`
Usage|`break`
Size|1
3 changes: 2 additions & 1 deletion docs/runtime/bytecode/nope.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# `nope` instruction
Does nothing

Property|Value
---|---
Alias|`nope`
Description|Does nothing
Introduced in|
Code|`0x00`
Usage|`nope`
Size|1
2 changes: 2 additions & 0 deletions docs/runtime/bytecode/pop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# `pop` instructions
Pop instructions are popping values from stack to somewhere
69 changes: 21 additions & 48 deletions docs/runtime/bytecode/push.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# `push` instruction
# `push` instructions
Push instructions are pushing values onto stack for future using

Property|Value
---|---
Alias|`push`
Description|Push local variable value onto stack
Introduced in|
Code|`0x03`
Signature|`push <index: u16>`<br/>`push <name>`
Usage|`push <index: u16>`<br/>`push <name>`
Size|3

## Push argument
Expand All @@ -15,9 +15,8 @@ Property|Value
---|---
Alias|`push arg`
Description|Push argument value onto stack
Introduced in|
Code|`0x02`
Signature|`push arg <index: u16>`<br/>`push arg <name>`
Usage|`push arg <index: u16>`<br/>`push arg <name: literal>`
Size|3

## Push literals
Expand All @@ -28,113 +27,88 @@ Size|3
---|---
Alias|`push i8`
Description|Push 8-bit integer onto stack
Introduced in|
Code|`0x20`
Signature|`push i8 <value: i8>`
Usage|`push i8 <value: i8>`
Size|2

=== "i16"

Property|Value
---|---
Alias|`push i16`
Alias|`push`
Description|Push 16-bit integer onto stack
Introduced in|
Code|`0x21`
Signature|`push i16 <value: i16>`
Usage|`push i16 <value: i16>`
Size|3

=== "i32"

Property|Value
---|---
Alias|`push i32`
Alias|`push`
Description|Push 32-bit integer onto stack
Introduced in|
Code|`0x22`
Signature|`push i32 <value: i32>`
Usage|`push i32 <value: i32>`
Size|5

=== "i64"

Property|Value
---|---
Alias|`push i64`
Alias|`push`
Description|Push 64-bit integer onto stack
Introduced in|
Code|`0x23`
Signature|`push i64 <value: i64>`
Usage|`push i64 <value: i64>`
Size|9

=== "u8"

Property|Value
---|---
Alias|`push u8`
Alias|`push`
Description|Push 8-bit unsigned integer onto stack
Introduced in|
Code|`0x25`
Signature|`push u8 <value: u8>`
Usage|`push u8 <value: u8>`
Size|2

=== "u16"

Property|Value
---|---
Alias|`push u16`
Alias|`push`
Description|Push 16-bit unsigned integer onto stack
Introduced in|
Code|`0x26`
Signature|`push u16 <value: u16>`
Usage|`push u16 <value: u16>`
Size|3

=== "u32"

Property|Value
---|---
Alias|`push u32`
Alias|`push`
Description|Push 32-bit unsigned integer onto stack
Introduced in|
Code|`0x27`
Signature|`push u32 <value: u32>`
Usage|`push u32 <value: u32>`
Size|5

=== "u64"

Property|Value
---|---
Alias|`push i64`
Alias|`push`
Description|Push 64-bit unsigned integer onto stack
Introduced in|
Code|`0x28`
Signature|`push u64 <value: u64>`
Usage|`push u64 <value: u64>`
Size|9

=== "f16"

???+ danger
This instruction may be removed in future!<br/>
May be not...

Property|Value
---|---
Alias|`push f16`
Description|Push half-size float integer onto stack
Introduced in|
Code|`0x2A`
Signature|`push f16 <value: f16>`
Size|3

=== "f32"

Property|Value
---|---
Alias|`push f32`
Description|Push float integer onto stack
Introduced in|
Code|`0x2B`
Signature|`push f32 <value: f32>`
Usage|`push <value: f32>`
Size|5

=== "f64"
Expand All @@ -143,7 +117,6 @@ Size|3
---|---
Alias|`push f64`
Description|Push double float integer onto stack
Introduced in|
Code|`0x2C`
Signature|`push f64 <value: f64>`
Usage|`push <value: f64>`
Size|9
5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ nav:
- Bytecode:
- runtime/bytecode/nope.md
- runtime/bytecode/break.md
- runtime/bytecode/load_arg.md
- runtime/bytecode/ret.md
- runtime/bytecode/pop.md
- runtime/bytecode/push.md
- runtime/bytecode/pop.md
- runtime/bytecode/ret.md
- runtime/bytecode/add.md
- runtime/bytecode/sub.md
- runtime/bytecode/mul.md
Expand Down

0 comments on commit dc12820

Please sign in to comment.