嗨伙计!有没有经验丰富的MS DOS? [英] Hi folks! Is anyone experienced in MS DOS?

查看:71
本文介绍了嗨伙计!有没有经验丰富的MS DOS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力处理以下提示数小时:

在MS DOS中,编写一个汇编语言程序,它将接受键盘上的单个字符,然后输出下一个字符。 ASCII序列。例如,如果输入字符'A',则字符'B'将被输入。



我尝试过:



我真的不知道如何添加输入值。任何建议将不胜感激!

I've been struggling with the following prompt for hours:
In MS DOS, Write an assembly language program that will accept a single character from the keyboard, and then output the next character in the ASCII sequence. For example, if the character 'A' is entered, the character 'B' will be typed out.

What I have tried:

I don't really know how to add to the input value. Any advice would be greatly appreciated!

INCLUDE Irvine32.inc
.data
msg1 db "Enter a key ",0
msg2 db "You typed in ",0
.code
main PROC

mov edx, OFFSET msg1
call WriteString
call ReadChar


mov edx, OFFSET msg2
call WriteString
call WriteChar 

exit
main ENDP
END main

推荐答案

在任何计算机语言中,将1添加1将生成B。如果您不理解这个基本概念,那么您需要掌握一本关于计算机的入门书。
In any computer language adding 1 to 'A' will produce 'B'. If you do not understand that basic concept then you need to get hold of an introductory book on computers.


这篇关于嗨伙计!有没有经验丰富的MS DOS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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