【问题标题】:NASM unable to open include file asm_io.inc. Doesn't it come with NASM?NASM 无法打开包含文件 asm_io.inc。不是NASM自带的吗?
【发布时间】:2015-01-13 08:19:18
【问题描述】:

我无法在 Ubuntu 中包含文件 'asm_io.inc'

我用以下方式尝试过:

%include 'asm_io.inc'

并发出以下命令:

sudo nasm -f coff simple.asm

错误:

simple.asm:1: fatal: unable to open include file `asm_io.inc'

在谷歌上搜索后,我尝试了以下变体:

include 'asm_io.inc'

%include "~//includes//asm_io.inc"

我什至在根目录中搜索文件 asm_io.inc,但没有显示出来。

但是,如果我没有在其他 NASM 代码中包含文件 asm_io.inc,则汇编程序可以正常工作。

我的问题:

我做错了什么?

【问题讨论】:

  • 那么,asm_io.inc 文件到底在您的硬盘上的什么位置?
  • @Michael 块 0x4ff96c0 ;)
  • @Michael 正如我所提到的,我已经安装了 NASM,但仍在搜索 asm_io.inc 并没有产生任何结果。 Acc to U 是否可以安装或我必须在工作目录中手动下载?

标签: ubuntu assembly nasm


【解决方案1】:

我猜你正在使用 Paul Carters 教程的一些代码。如果是这种情况,您需要从http://pacman128.github.io/pcasm/ 下载 asm_io.inc

【讨论】:

  • 我知道您当时的链接是正确的,但是源代码的下载页面已经改变。我认为更新这个答案是个好主意。这是新的正确网址:pacman128.github.io/pcasm
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-08-07
  • 2018-04-05
  • 2019-02-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多