dosboxdebug无效_DOSBox中:Debug.exe将读取文件 - 过程不正确的命令

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

-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!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值