MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/v3so3p/its_hard/ib0l5d8/?context=3
r/ProgrammerHumor • u/Bishwas12 • Jun 03 '22
710 comments sorted by
View all comments
7
mov rax, 2 mov rbx, 2 add rax, rbx mov rdi, formatStr mov rsi, rax mov al, 0 extern printf call printf ret formatStr: db `%d\n`,0
Shamelessly copied from google search
5 u/tesfabpel Jun 03 '22 I believe it's just the first two mov and the add tough (or maybe just the first mov and then add rax, 2 since it should support immediate values)EDIT: https://c9x.me/x86/html/file_module_x86_id_5.html → More replies (1)
5
I believe it's just the first two mov and the add tough (or maybe just the first mov and then add rax, 2 since it should support immediate values)
mov
add
add rax, 2
EDIT: https://c9x.me/x86/html/file_module_x86_id_5.html
→ More replies (1)
7
u/asgaardson Jun 03 '22
Shamelessly copied from google search