MSDOS“ Hello World”可执行程序 [英] MSDOS "Hello World" EXE

查看:165
本文介绍了MSDOS“ Hello World”可执行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个悬而未决的问题-但是我找不到任何起点!

An open question - but I cant find anywhere to start!!

我想编译一个 Hello World MS-DOS exe。

I want to compile a "Hello World" MS-DOS exe.

不是以XP 16位模式或Windows OS顶部的MSDos模式运行的程序。

Not a program that runs in XP 16bit mode, or in MSDos mode on top of Windows OSs.

一个HELOWRLD.EXE我可以在MSDOS盒子上运行。

A HELOWRLD.EXE that I can run on my MSDOS box.

谢谢!

推荐答案

我认为 DEBUG.EXE 仍与Windows一起提供(至少与XP兼容)。运行debug并输入以下文字:

I think DEBUG.EXE still ships with windows (at least it does with XP). Run debug and enter something along the lines of the following transcript:

c:\src> debug
-a 100
1373:0100 mov ah,9
1373:0102 mov dx,108
1373:0105 int 21
1373:0107 ret
1373:0108 db "Hello world!$"
1373:0115
-n c:\hi.com
-r bx
BX 0000
:0
-r cx
CX 0000
:15
-w
Writing 00015 bytes
-q

c:\src> c:\hi.com
Hello world!

c:\src> _

有关DEBUG.EXE的更多信息,请访问: http://en.wikipedia.org/wiki/Debug_(命令)

Read more on DEBUG.EXE at: http://en.wikipedia.org/wiki/Debug_(command)

INT 21在以下位置显示字符串http: http://www.uv.tietgen.dk/staff/mlha/PC/Prog/asm/int/21/09.htm

And the INT 21 display string http at: http://www.uv.tietgen.dk/staff/mlha/PC/Prog/asm/int/21/09.htm

这篇关于MSDOS“ Hello World”可执行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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