如何在 vscode 中运行多个 .asm 文件
我刚刚开始学习 x86
中的汇编语言编程,主要使用 DOSBox
。我在 Linux 虚拟机中使用 DOSBox。最近在vscode中发现了一个扩展MASM/TASM
:
所以,我喜欢它并开始使用它,因为我现在可以在 vscode 本身中编写汇编语言程序。但是,问题是它不允许我创建另一个 .asm
文件。相反,它只会保留我之前创建的单个文件。该文件将始终存在于目录中。
这是一个文件(我创建的):
我尝试使用masm prac.asm
,但它给出了不存在
错误。唯一有效的是copy test.asm prac.asm
,它将prac.asm
添加到目录中。关闭 dosbox 模拟器时,文件 prac.asm
将从目录中删除。有没有办法让目录中始终有多个文件,例如 prac.asm、prac2.asm 等?
I have just started learning assembly language programming in x86
mainly using DOSBox
. I was using DOSBox in a Linux virtual machine. Recently, I found an extension in vscode MASM/TASM
:
So, I liked it and started using it since I could now write assembly language programs in vscode itself. But, the problem is it won't let me create another .asm
file. Instead, it will just keep the single file I had created earlier. This file would always be there in the directory.
This is the one file (which I had created):
And this is the file (and many others) which I want to add to the directory as well and use:
I have tried using masm prac.asm
, but it gives a does not exist
error. The only thing that works is copy test.asm prac.asm
which addes prac.asm
to the directory. On closing the dosbox emulator, the file prac.asm
gets erased from the directory. Is there any way to always have multiple files in the directory like prac.asm
, prac2.asm
etc.?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在此扩展程序的设置中,有一个名为
工作模式
。默认情况下它设置为单个文件。如果您更改为工作区,它将安装整个目录。In the settings for this extension there's one called
Working mode
. By default it's set to single file. If you change to workspace it will mount the whole dir.