鱼C论坛

 找回密码
 立即注册

汇编11章的作业语言

已有 250 次阅读2017-6-12 22:50 |个人分类:作业

assume cs:codesg

datasg segment
db "Beginner's All-purpose Symbolic Instruction Code.",0
datasg ends

codesg segment
start:
mov ax,datasg
mov ds,ax
mov si,0
call letterc
mov ax,4c00h
int 21h
letterc:;==小写字母转为大写字母==
push si
push ax
mov ax,0
push ax
popf
s0:
mov al,[si]
cmp al,0
je quit
cmp al,61h
jb s1
cmp al,07aH
ja s1
sub al,20h
mov [si],al
s1:
inc si
jmp s0
quit:
pop ax
pop si
ret
codesg ends
end start


路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-28 03:22

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部