Push/Pop segmentation fault at Assembly x86

后端 未结 3 1014
小鲜肉
小鲜肉 2020-12-22 05:00

I\'m using elf64 to compile my assembly x86 code: I\'ve this sub-routine:

printNumber:
    mov EAX, EDX ; EDX contain some value like \"35\"         


        
3条回答
  •  旧时难觅i
    2020-12-22 05:53

    I see a push rdx, but nowhere a pop rdx. You keep pushing values on stack and when you reach RET you return to the address which was previously the content of RDX.

提交回复
热议问题