开发者

Push and Pop on AMD64 [duplicate]

This question already has answers here: Does each PUSH instruction push a multiple of 8 bytes on x64? (2 answer开发者_开发问答s) Closed 4 years ago.

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜