Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Read it as "esp = 0". "add eax, 3" is like "eax += 3" in C.

This is the Intel syntax and it is the most popular for doing x86 assembly.

The other syntax, the AT&T syntax, works the other way ("mov $0, %esp" puts 0 into esp).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: