汇编网首页登录博客注册
12sunfeng34的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
最新留言
友情链接

[2010-09-02 21:38] 实验9

assume cs:code
data segment
 db 'welcome to masm!'
data ends
code segment
start: mov ax,data
       mov ds,ax
       mov bx,0
       mov si,7e4h   ;第13行的第64个字节使得字符串在中间
       mov cx,16
       mov ax,0b800h
       mov es,ax   ;将现存的段地址放入es中
s:mov al,ds:[bx]
  mov es:[si],al   ;传递字符串
  mov al,71h       
  mov es:[si+1],al ;设置字符属性
  add si,2
  inc bx
  loop s
  mov ax,4c00h
  int 21h
code ends
end start
评论次数(0)  |  浏览次数(497)  |  类型(汇编作业) |  收藏此文  | 
 
 请输入验证码  (提示:点击验证码输入框,以获取验证码