Created
August 4, 2022 02:31
-
-
Save Saw-mon-and-Natalie/5132c6b67e2328208e54b02c9c3da5b2 to your computer and use it in GitHub Desktop.
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
# --- evm quine --- | |
# ⬜ => ⬜ | |
# --- stack --- | |
# immediate value for push15 | |
# is the compiled bytecode for part 2 | |
push15 0x8060781b173d52386001606e8153f3 # c | |
# --- part 2 --- | |
dup1 # c c | |
push1 0x78 # 15*8 c c | |
shl # c<<15*8 c | |
or # cc: c concatenated to itself | |
returndatasize # 0 cc | |
mstore # mem[0,32): 0000 cc | |
codesize # cs = 31 | |
push1 0x01 # 1 cs | |
push1 0x6e # (0x6e = push15) 1 cs | |
dup2 # 1 0x6e 1 cs | |
mstore8 # 1 cs | mem[0,32): 006e cc | |
return | |
# compiled bytecode : | |
# 6e 8060781b173d52386001606e8153f3 8060781b173d52386001606e8153f3 | |
# challenge by : 0xkarmacoma / https://twitter.com/0xkarmacoma/status/1554246286290735104 | |
# Saw-mon & Natalie : em2500 M253X |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment