|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- assume cs:codes,ds:data,ss:stack
- data segment
- db 'welcome to masm!'
- db 02h,24h,71h
- data ends
- stack segment
- dw 8 dup (0)
- stack ends
- codes segment
- start: mov ax,data
- mov ds,ax
- mov ax,stack
- mov ss,ax
- add sp,10h
- mov di,0
- mov ax,0b872h
- mov cx,3
- s: push cx
- push ax
- mov bx,0
- mov si,0
- mov es,ax
- mov cx,16
- s1: mov dl,ds:[si]
- mov dh,ds:[16+di]
- mov es:[bx],dx
- inc si
- add bx,2
- loop s1
- add di,1
- pop ax
- add ax,0Ah
- pop cx
- loop s
- mov ax,4c00h
- int 21h
- codes ends
- end start
复制代码
终于,终于,研究了两天的实验九终于完美了。脑袋都大了。贴出代码大家分享一下。我感觉我的代码挺简洁的。哈哈 |
|