|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
(2) 编程,将datasg段中的单词的前4个字母改成大写字母。
- assume cs:codesg,ss:stacksg,ds:datasg
- datasg segment
- db '1. display '
- db '2. brows '
- db '3. replace '
- db '4. modify '
- datasg ends
- stacksg segment
- dw 0,0,0,0,0,0,0,0
- stacksg ends
- codesg segment
- start:
- mov ax,datasg
- mov ds,ax
- mov ax,stacksg
- mov ss,ax
- mov sp,16
- mov cx,4
- mov bx,0
- s0:
- push cx
- mov cx,4
- mov si,0
- s1:
- mov al,[bx+si+3]
- and al,11011111b
- mov [bx+si+3],al
- inc si
- loop s1
-
- pop cx
- add bx,16
- loop s0
- mov ax,4c00h
- int 21h
- codesg ends
- end start
复制代码
|
|