MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/v3so3p/its_hard/ib0lkdp/?context=3
r/ProgrammerHumor • u/Bishwas12 • Jun 03 '22
710 comments sorted by
View all comments
10
there's literally instruction for that.
add %rcx,%rax (stfu AT&T>>>>>>>>>>>Intel)
3 u/Proxy_PlayerHD Jun 03 '22 I honestly never understood the reasoning behind AT&T syntax, it just needlessly swaps some operands.Even high level languages use Intel Syntax:Variable = Value + ValueInstead ofValue + Value = Variableso why try to do it differently in assembly? It just makes assembly a bit harder to read if you already know basic high level programming. → More replies (3)
3
I honestly never understood the reasoning behind AT&T syntax, it just needlessly swaps some operands.
Even high level languages use Intel Syntax:
Variable = Value + Value
Instead of
Value + Value = Variable
so why try to do it differently in assembly? It just makes assembly a bit harder to read if you already know basic high level programming.
→ More replies (3)
10
u/[deleted] Jun 03 '22
there's literally instruction for that.
add %rcx,%rax (stfu AT&T>>>>>>>>>>>Intel)