xxasy 发表于 2011-6-29 16:40:13

王爽实验九,两天终于完美结束了。

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:
mov dh,ds:
mov es:,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



终于,终于,研究了两天的实验九终于完美了。脑袋都大了。贴出代码大家分享一下。我感觉我的代码挺简洁的。哈哈

我挖 发表于 2013-7-2 23:04:19

看帖就要回帖支持下

fishmo 发表于 2013-7-2 23:40:11

看看老帖,支持下

Cocol 发表于 2013-7-3 19:16:45

看看,回复支持下
页: [1]
查看完整版本: 王爽实验九,两天终于完美结束了。