Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图弄清楚如何使用 nasm 快速获取 x86 操作的十六进制。
我试过像
> echo "mov ax, 1" | nasm > nasm < echo "mov ax, 1"
两者都不起作用,但你知道我想要做什么......有什么想法吗?
我确信有一种更优雅的方式,但这应该可以工作(你可以用它制作一个脚本):
echo "mov ax,1" > temp.asm && nasm -f bin -o temp.com temp.asm && ndisasm temp.com