7

What is the equivilent of pushl %ecx and popl %ecx on a AMD64 sytem, My results are Error: invalid instruction suffix for 'push' I have had a look and some one suggested changing ecx to rcx but that just resulted in Incorrect register '%rcx' used with 'l' suffix

Thanks for your help.

Michael Petch
  • 46,082
  • 8
  • 107
  • 198
Elgoog
  • 2,205
  • 7
  • 36
  • 48

1 Answers1

9

On AMD64, push and pop operations are implicitly 64-bits and have no 32-bit counterparts. Try:

pushq %rcx
popq %rcx

See here for details.

Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479