我正在使用 NASM 开发一个更深入的 hello world按照本教程 http://www.cin.ufpe.br/~if817/arquivos/asmtut/quickstart.html(第 4 节)。本教程主要教您如何处理命令行输入。
这是相关代码的片段:
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
代码在编译期间出错error: instruction not supported in 64-bit mode
参考上面3条pop指令。查看文档后 http://cs.nyu.edu/courses/fall02/V22.0201-001/nasm_doc_html/nasmdocb.html#section-B.4.244看来这段代码只适用于32位系统。
有64位的吗pop
操作说明?有没有人有64位的使用教程pop
我可以看看吗?
是的,64位pop
指令是...POP。 :-) 不过,您需要针对 64 位寄存器使用它(例如rbx
).
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)