-
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
7 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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,10 @@ | ||
#include "./dummy.huff" | ||
|
||
#define macro MAIN() = takes(0) returns(0) { | ||
0x00 calldataload // [number1] // load first 32 bytes onto the stack - number 1 | ||
0x20 calldataload // [number2] // load second 32 bytes onto the stack - number 2 | ||
add // [number1+number2] // add number 1 and 2 and put the result onto the stack | ||
|
||
0x00 mstore // place [number1 + number2] in memory | ||
0x20 0x00 return // return the result | ||
} |
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,10 @@ | ||
#include "./dummy.huff" | ||
|
||
#define macro MAIN() = takes(0) returns(0) { | ||
[NAME] // load first const | ||
[NAME2] // load second const | ||
add // [number1+number2] // add number 1 and 2 and put the result onto the stack | ||
|
||
0x00 mstore // place [number1 + number2] in memory | ||
0x20 0x00 return // return the result | ||
} |
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,2 @@ | ||
#include "./dummy2.huff" | ||
#define constant NAME = 0x1234 |
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,2 @@ | ||
#include "./included/rel.huff" | ||
#define constant NAME2 = 0x1234 |
File renamed without changes.
File renamed without changes.
File renamed without changes.