本文介绍了循环在Windows 7调试指令作品语句不会在DOSBox中工作0.74的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有大约在汇编语言循环的活动。我们的任务很简单:与每个数字之间在空间显示数字0到9。我得到了code在我们学校在Windows 7中使用调试命令在命令提示符下工作。我的笔记本是10的Windows,我最近发现有一个在命令提示符下没有调试命令。于是,我就写我的code的DOSBox中的0.74(最新的,也许)。每次我在DOSBox中运行它,程序突然挂断,然后崩溃。这里的code

We had an activity about looping in assembly language. Our task is simple: display the numbers 0 to 9 with spaces in-between each number. I got the code to work in the command prompt using the 'debug' command in WINDOWS 7 in our school. My laptop is Windows 10 and I recently found out that there's no 'debug' command in the command prompt. So I tried writing my code in DOSBox 0.74 (latest, maybe). Every time i run it in DOSBox, the programs suddenly hangs up and then crashes. Here's the code

mov cx,0a
mov ah,02
mov dl,30
int 21
mov bl,dl
mov dl,20
int 21
mov dl,bl
inc dl
loop 0107
int 20

能否有人请解释我为什么DOSBox中崩溃?

Can someone please explain me why DOSBox crashes?

下面是一个运行在cmd中在Windows 7中的工作程序的样本图片:

Here is a sample pic of the working program which runs in cmd on Windows 7:

推荐答案

虽然你的问题是不是这个其他似乎共享某些相似之处。即意外挂起或异常行为。这似乎在DOSBox中运行时可用于MS-DOS DEBUG.EXE 版本并不总是正常工作。这可能是因为DOSBox中可能不是100%兼容模拟一个真实的PC /硬件(和DOS)。这可能会导致一些程序和/或操作系统在DOSBox中使用时,无法按预期工作。

Although your question isn't a duplicate of this other Stackoverflow question it seems to share certain similarities. Namely unexpected hangs or unusual behaviour. It would seem that DEBUG.EXE versions available for MS-DOS do not always function properly when run in DOSBox. This may be because DOSBox may not be 100% compatible emulating a real PC/Hardware(and DOS). This could result in some programs and/or OSes to not work as expected when used in DOSBox.

我已经修改我的previous 提出各种MS-DOS 当DOSBox中下运行DEBUG.EXE 程序可能无法正常工作。罗斯岭确认里面DOSBox中运行的时候,他可以复制与DOS 6.22的调试您的问题。

I have amended my previous Stackoverflow answer to suggest a variety of MS-DOS DEBUG.EXE programs may not work properly when run under DOSBox. Ross Ridge confirms he can duplicate your problem with DOS 6.22's debugger when run inside DOSBox.

有一个版本的 DEBUG.COM ,是由似乎与DOSBox中发挥出色。我已经可用的版本FreeDOS的从我的网站下载。或者你可以从Softpedia的 ZIP文件并提取 DEBUG.COM

There is a version of DEBUG.COM that was released by FreeDOS that seems to play well with DOSBox. I have made the FreeDOS version of DEBUG.COM available for download from my website. Alternatively you can download the ZIP File from Softpedia and extract DEBUG.COM.

这篇关于循环在Windows 7调试指令作品语句不会在DOSBox中工作0.74的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 02:28