// =========================================
// EVM assembly description (ADD TWO NUMS)
// =========================================
// BYTECODE MNEMONIC STACK ACTION
// 60 00 // PUSH1 0x00 // [0x00]
// 35 // CALLDATALOAD // [number1] Store the first 32 bytes on the stack
// 60 20 // PUSH1 0x20 // [0x20, number1]
// 35 // CALLDATALOAD // [number2, number1] Store the second 32 bytes on the stack
// 01 // ADD // [number2+number1] Take two stack inputs and add the result
// 60 00 // PUSH1 0x00 // [0x0, (n2+n1)]
// 52 // MSTORE // [] Store (n2+n1) in the first 32 bytes of memory
// 60 20 // PUSH1 0x20 // [0x20]
// 60 00 // PUSH1 0x00 // [0x00, 0x20]
// f3 // RETURN // [] Return the first 32 bytes of memory-
Notifications
You must be signed in to change notification settings - Fork 0
ocdbytes/huff-lang
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
♞
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published