-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
40 additions
and
50 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "OOLANG" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
edition = "2021" | ||
authors = ["Joey Harrison <[email protected]>"] | ||
repository= "https://github.com/RNM-Enterprises/oolang" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# program to compute 5 + 10 | ||
O ǾǾǾǾ | ||
O ǾǾǾǾǾǾǾǾǾ | ||
⭕ |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
O | ||
O | ||
O ◯ # store in memory 1 | ||
OǾ◯ # store in memory 2 | ||
|
||
OǾǾǾǾǾ # push 6 (calculate 6th fibonacci number) | ||
|
||
O ◎ # load in memory 1 | ||
OǾ◎ # load in memory 2 | ||
⭕ # add | ||
OǾ◎|O◯ # mov memory 2 to memory 1 | ||
OǾ◯ # store in memory 2 | ||
|
||
Ꮻ | ||
OǾǾǾǾǾǾǾǾǾǾǾǾ | ||
𐍉 # jump to char 14 if not equal to 0 | ||
|
||
OǾ◎ # load in memory 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
O ǾǾǾǾǾ # push 6 to stack | ||
Ꮻ | ||
O ǾǾǾǾǾǾǾǾ # push 9 to stack | ||
O ◯ # store 9 in memory 1 | ||
O ◎ # load 9 back into stack | ||
O Ǿ ◯ # store 9 in memory 2 | ||
|
||
O ◎ # load in memory 1 | ||
O Ǿ ◎ # load in memory 2 | ||
⭕ | ||
O Ǿ ◯ # store result in memory 2 | ||
Ꮻ # decrease counter | ||
O ǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾ # push 23 | ||
𐍉 | ||
|
||
O Ǿ ◎ # load answer back in from memory 2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.