使用NASM在64位模式下不支持pop指令?

aho*_*der 16 assembly x86-64 nasm 32bit-64bit

我正在按照本教程(第4节)使用NASM开展一个更深入的hello世界.本教程基本上教您如何处理命令行输入.
这是相关代码的片段:

section .text
        global _start

_start:
        pop     ebx     ; arg count
        pop     ebx     ; arg[0] the program name
        pop     ebx     ; arg[1-n] the remainder of the args
                        ; must each be indiviually popped
Run Code Online (Sandbox Code Playgroud)

编译过程中的代码错误,error: instruction not supported in 64-bit mode参考上面的3个弹出指令.在查看文档时,似乎此代码仅适用于32位系统.

有64位pop指令吗?有没有人使用pop我可以看到的64位教程?

Bri*_*uch 20

是的,64位pop指令是...... POP.:-)你需要使用它来对抗64位寄存器(比如rbx).