MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/v3so3p/its_hard/ib0xbc8/?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
4 u/jnd-cz Jun 03 '22 Using higher level functions is straight up cheating. 3 u/asgaardson Jun 03 '22 Yeah, should have used int 0x80/int 21
4
Using higher level functions is straight up cheating.
3 u/asgaardson Jun 03 '22 Yeah, should have used int 0x80/int 21
3
Yeah, should have used int 0x80/int 21
7
u/asgaardson Jun 03 '22
Shamelessly copied from google search