Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct comments #1414

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ calldatacopy:
# [18] CALLDATACOPY calldatacopy of 0x0103 bytes to memory 0x1f (and later)

# [20] PUSH1 0x00
# [21] MLOAD ; Should be zero
# [21] MLOAD ; Should load 0 if memory at address 0 is uninitialized
# [22] DUP1
# [24] PUSH1 0x60
# [25] EQ ; Is zero equal to 0x60?
Expand All @@ -168,15 +168,15 @@ calldatacopy:
balance: '0x0ba1a9ce0ba1a9ce'
code: |
{
; Put a 0x10 byte long value in zero (each byte is two hex digits)
; Put a 0x11 byte long value in zero (each byte is two hex digits)
; Then call a contract with just that data. In evm the most
; significant byte comes first, so the value ends up in memory
; locations 0x10-0x1F

[0] 0x1234567890abcdef01234567890abcdef0

(call 0xffffff (+ 0x1000 $4) 0
0x0F 0x10 ; arg offset and length to get the 0x1234...f0 value
0x0F 0x11 ; arg offset and length to get the 0x1234...f0 value
0x20 0x40) ; return offset and length

; Preserve the return data
Expand Down