Push and Pop on AMD64

What is equivalent pushl %ecx and popl %ecx on an AMD64 system, My results Error: invalid instruction suffix for 'push' I looked, and someone suggested changing ecx to rcx , but that just led to Incorrect register '%rcx' used with 'l' suffix

Thank you for your help.

+7
source share
1 answer

In AMD64, push and pop implicitly 64-bit and have no 32-bit counterparts. Try:

 pushq %rcx popq %rcx 

See here for more details.

+9
source

Source: https://habr.com/ru/post/1340426/


All Articles