DOSBox中:Debug.exe将读取文件 - 过程不正确的命令 [英] DOSBox: debug.exe reads file - processes commands incorrectly

查看:840
本文介绍了DOSBox中:Debug.exe将读取文件 - 过程不正确的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用DOSBox中以 Debug.exe将 64位系统上。如果我手动输入命令,它完美的罚款。当我重定向从文件输入:

 调试和LT; [文件]

这是行不通的。在除了第一个将显示类似这样的错误的每一行:

在这里输入的形象描述

DOSBox中最终会挂起和崩溃。有什么办法解决这一问题?

我想处理的命令输入文件是:

  100
JMP 145
DB你好,世界!,0D,0A,'preSS任意键继续。 。 。$145
MOV啊,09
MOV DX,102
诠释21
MOV啊,08
诠释21
诠释20RCX
100
ñhello.com
W¯¯
q


解决方案

我可以重现你看到在这种情况下的行为:


  • 在Windows和Linux的DOSBox 0.74

  • 从Windows XP中DEBUG.EXE复制到DOSBox中

  • 从MS-DOS的各种版本DEBUG.EXE会造成问题,包括意外挂起。看到这个问题#1 另一个相关的问题。

我发现了一个版本 DEBUG.COM 的FreeDOS ,作为预期工作。我已经 DEBUG.COM 可以从我的网站下载。或者你可以从Softpedia的 ZIP文件并提取 DEBUG.COM

当我运行 DEBUG.COM 我得到这样的:

 取值:\\> debug.com< hello.asm
-a 100
0BFB:0100 JMP 145
0BFB:'你好,世界0102分贝,0D,0A,'preSS任意键继续。 。 。$
0BFB:0131
-a 145
0BFB:0145 MOV啊,09
0BFB:0147 MOV DX,102
0BFB:014A INT 21
0BFB:014C MOV啊,08
0BFB:014E INT 21
0BFB:0150​​ INT 20
0BFB:0152
-rcx
CX 0000
:100
-n hello.com
-w
写作00100字节
-q小号:\\>你好
你好,世界!

I'm trying to use DOSBox with debug.exe on a 64-bit system. It works perfectly fine if I enter the commands manually. When I redirect input from a file with:

debug < [file]

it doesn't work. On every line except for the first it displays an error similar to this:

DOSBox will eventually hang and crash. Is there any way to fix this?

The input file I am trying to process as commands is:

a 100
jmp 145
db 'Hello, World!', 0D, 0A, 'Press any key to continue . . .$'

a 145
mov ah, 09
mov dx, 102
int 21
mov ah, 08
int 21
int 20

rcx
100
n hello.com
w
q

解决方案

I can reproduce the behavior you are seeing in this scenario:

  • DOSBox 0.74 on Windows and Linux
  • DEBUG.EXE from Windows XP copied to DOSBox
  • DEBUG.EXE from various versions of MS-DOS will cause problem including unexpected hangs. See this Stackoverflow question for another related problem.

I found a version of DEBUG.COM from FreeDOS that works as expected. I have made DEBUG.COM available for download from my website. Alternatively you can download the ZIP File from Softpedia and extract DEBUG.COM.

When I run DEBUG.COM I get this:

S:\>debug.com <hello.asm
-a 100
0BFB:0100 jmp 145
0BFB:0102 db 'Hello, World!', 0D, 0A, 'Press any key to continue . . .$'
0BFB:0131
-a 145
0BFB:0145 mov ah, 09
0BFB:0147 mov dx, 102
0BFB:014A int 21
0BFB:014C mov ah, 08
0BFB:014E int 21
0BFB:0150 int 20
0BFB:0152
-rcx
CX 0000
:100
-n hello.com
-w
Writing 00100 bytes
-q

S:\>hello
Hello, World!

这篇关于DOSBox中:Debug.exe将读取文件 - 过程不正确的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆