汇编语言编程键盘输入的小写字母换成大写(Assembly language programming, keyboard input of lowercase letters into uppercase).docVIP
- 1、本文档共17页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
汇编语言编程键盘输入的小写字母换成大写(Assembly language programming, keyboard input of lowercase letters into uppercase)
汇编语言编程键盘输入的小写字母换成大写(Assembly language programming, keyboard input of lowercase letters into uppercase)
Assembly language programming, requiring the keyboard input of lowercase letters into uppercase
If I enter lowercase, this program converts to uppercase output; if you enter uppercase, then convert to lowercase output.
Cseg segment
Assume cs:cseg
Begin:
Mov ah, 1
Int 21h
XOR, Al, 20h
MOV, DL, Al
Mov ah, 2
Int 21h
MOV, ah, 4CH
Int 21h
Cseg ends
End begin
......
BUF DB please input:$
......
Start:, MOV, ax, data
MOV, DS, ax
Lea, DX, BUF
Mov ah, 9
Int 21h
Lopa:, MOV, ah, 10, 10 call the input string
Int 21h
MOV, DL, Al
CMP, DL,a
JB L
CMP, DL,z
Ja L
Sub, DL, 20h
L:, MOV, ah, 2
Int 21h
EXIT:, MOV, ah, 4CH
Int 21h
......
Assembler: enter a string of lowercase letters from the keyboard into uppercase
Tuesday, 04 December 2007, 12:44
Enter a line of characters from the keyboard, convert lowercase letters to uppercase characters, and output other characters as they are
Data segment
Chars DB 200 dup (); opens 200 bytes of buffer
Data ends
---------------------------------;
Code segment
Assume, cs:code, ds:data
Start:
Push DS
Mov ax, 0
Push ax
MOV, ax, data
MOV, DS, ax
Lea, BX, chars
Mov Si, 0
Mov ch, 0
The input character; conducting subroutine
Scanf:
Mov ah, 1
Int 21h
CMP, Al, 0dh
JZ CRT
CMP, Al, 61H
JNB alsub; al=a
MOV, [bx], Al
Inc BX
Inc Ch
JMP scanf
--------------------------;
And the output character;
Crt:
MOV, DL, chars[si]
Mov ah, 2
Int 21h
Inc Si
Dec Ch
JZ exit
JMP CRT
Conducting;
Exit:
MOV, ah, 4CH
Int 21h
Conducting;
Alsub:
CMP, Al, 7Ah; al=z
JBE alsub20h
MOV, [bx], Al
Inc BX
Inc Ch
JMP scanf
Data interchange for trade;
Alsub20h:
Sub, Al, 20h
MOV, [bx], Al
Inc BX
Inc Ch
JMP scanf
Data interchange for trade;
Code ends
End start
Assembly language programming problems: enter a string with the keyboard, containing a number of letters and characters, numbers, requirements, statistics of the three types, each has how many, and show
Views: 465 reward points: 10 time: 201
您可能关注的文档
- 残留溶剂测定法(Residual solvent method).doc
- 武汉理工大学无机材料科学基础名词解释(Wuhan University of Technology, inorganic materials science, basic terms, explanation).doc
- 残疾人李成松奋发图强的事迹(The deeds of Li Chengsong make efforts).doc
- 毁灭之王 符文物品、符石功能、赫拉笛克方块等(The Lord of destruction Rune Rune objects, functions, such as boxes of Hera dick).doc
- 母婴保健技术考核试题(Examination questions of maternal and child health care technology).doc
- 母婴店 童装店 孕婴店 促销必胜208招(Maternal stores children's clothing store Yunying shop promotion win 208 strokes).doc
- 武汉体育学院目标管理 机关单位2012年度目标初案参考模板(Target management unit of Wuhan Sports Institute 2012 annual target initial case reference template).doc
- 母猪产子需要专业产婆(The sow needs professional midwife).doc
- 母猪产后护理要点及注意事项(Key points and points for attention in postpartum nursing of sows).doc
- 母亲的感人事迹(A touching story of mother).doc
最近下载
- 民事陪审员培训课件.pptx VIP
- 材料科学基础:第十二章 金属材料强韧化机制.ppt VIP
- CNAS-GL27-2009 声明检测或校准结果及与规范符合性的指南.pdf VIP
- 胃脘痛护理查房.ppt VIP
- 【行业研报】2023年肯尼亚行业企业战略规划方案及未来五年行业预测报告.docx VIP
- 人民陪审员培训课件.pptx VIP
- 《氧化还原反应方程式的配平》练习题 .pdf VIP
- 部编六年级下册第11课《十六年前的回忆》一等奖教学设计说课稿.docx VIP
- GB_T 39637-2020 金属和合金的腐蚀 土壤环境腐蚀性分类.pdf
- 聚硼硅氮烷合成、掺杂及SiBCN陶瓷应用研究.docx VIP
文档评论(0)