masm.exe 不起作用

发布于 2024-12-14 08:28:03 字数 426 浏览 3 评论 0原文

为了避免长篇大论,我的老师让我们使用 MASM.EXE 可执行文件来汇编 .asm 文件。她说该软件在 Windows Vista 和 7 中存在问题,但在 XP 中则没有问题。我已经看到它在许多计算机上工作(使用 masm xxx.asm 或 debug),但在我的计算机(与其他计算机一样运行 XP SP3)中它什么也不做。

我知道 MASM.EXE 比计算机甚至恐龙还要古老,但我需要使用它(例如,而不是 ml.exe),因为我的学校是如此铁杆(而且愚蠢)。

tl;dr,当我运行“debug”或“masm xxx.asm”时,masm.exe 什么也不做。

预先非常感谢您!

在 masm temp.asm 之后,它应该生成一个 .obj 和一个 .lst 文件

To not make a short story long, my teacher makes us use a MASM.EXE executable to assemble .asm files. She says the software has problems in Windows Vista and Seven, but not in XP. I have seen it work in many computers (using masm xxx.asm or debug), but in my machine (running XP SP3 as the others) it just does nothing.

I know that MASM.EXE is older than computers and even dinosaurs, but I need to use it (and not ml.exe, for example) because my school is so hardcore (and stupid).

tl;dr, when I run either 'debug' or 'masm xxx.asm' masm.exe does nothing.

Thank you very much in advance!

After masm temp.asm it should make a .obj and a .lst files

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还在原地等你 2024-12-21 08:28:04

有趣的是,我有一个完全可用的 XP,它运行debug 得很好。好吧,它在运行时痛苦地将窗口强制为 80x25,并出于某种奇怪的原因将我的提示更改回退出时的短文件名版本,但它确实运行!

我无法测试 < code>masm 本身,因为它尚未安装,但首先要做的事情。确保你正在运行正确的东西:

for %i in (masm.exe) do @echo. %~$PATH:i

看看它会返回什么。还要确保执行:

masm.exe xx.asm

以确保没有 batcmd 文件妨碍。如果有必要,使用整个路径来运行它:

c:\full\path\to\masm.exe xx.asm
c:\windows\system32\debug.exe

您还可以尝试在 DOSBox 之类的环境中运行它,这将是一个更原始的(masm-友好)环境。

如果做不到这一切,你就会遇到两个问题。第一个是我们试图解决的技术问题,第二个是社会工程问题。

立即告诉您的教育工作者(并用书面记录来支持),尽管您符合他们的所有标准,但他们为您提供的工具无法在您的系统上运行。

他们确实有责任为您提供可行的工具,即使他们不在乎,他们至少知道问题所在,这可能会减轻您在未来遇到的任何问题。

Interestingly, I have a fully up-to-service XP and it runs debug just fine. Well, it painfully forces the window to 80x25 while it's running and changes my prompt back to the short-file-name version on exit for some bizarre reason, but it certainly runs!

I can't test masm itself since it's not installed but first things first. Make sure you're running the right thing:

for %i in (masm.exe) do @echo. %~$PATH:i

and see what it comes back with. Also make sure you execute:

masm.exe xx.asm

to ensure there's no bat or cmd files getting in the way. If necessary, use the entire path to run it:

c:\full\path\to\masm.exe xx.asm
c:\windows\system32\debug.exe

You could also try running it in something like DOSBox which would be a far more primitive (masm-friendly) environment.

Failing all that, you have two problems. The first is the technical one which we're trying to fix, the second is a social engineering one.

Tell your educators right now (and back it up with something written down) that the tools they have given you are not working on your system despite the fact you meet all their criteria.

They do have a responsibility to provide you with workable tools and, even if they don't care, they at least know of the problem which may mitigate any problems you have down the track.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文