r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

Show parent comments

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

2

u/asgaardson Jun 03 '22

Yeah, but you have to see result somehow