What do the dollar ($) and percentage (%) signs represent in x86 assembly?

后端 未结 5 1216
耶瑟儿~
耶瑟儿~ 2020-12-15 03:01

I am trying to understand how the assembly language works for a micro-computer architecture class, and I keep facing different syntaxes in examples:

sub $48,         


        
5条回答
  •  再見小時候
    2020-12-15 03:42

    As @Necrolis said, that's written in AT&T syntax. It means:

    subtract 48 from the register esp (the stack pointer).
    store the contents of eax to the four bytes starting at (esp + 32).
    

提交回复
热议问题