实验9比实验7难很多
assume cs:code,ds:data,ss:stackdata segment
db 'welcome to masm!'
dw 0fh,10h,11h,0a0h,0a0h,0a0h,0,0
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segment
start:mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,10h
mov ax,0b800h
mov es,ax
mov bx,680h
mov di,0
mov si,0
mov cx,3 ;外循环3次
s0: push cx
mov cx,16 ;内循环16次
s1: push cx
mov al,ds: ;取原字符
mov es:,al ;放入字符
mov ax,ds:
sub ax,ds:
mov cx,ax
jcxz s2
mov ds:,si
mov es:,02h ;放颜色
jmp s5
s2: mov ax,ds:
sub ax,ds:
dec ax
mov cx,ax
jcxz s3
mov ds:,si
mov es:,24h
jmp s5
s3: mov es:,71h
s5: add si,1
add di,2
pop cx
loop s1
add bx,0a0h
mov di,0
mov si,0
pop cx
loop s0
mov ax,4c00h
int 21h
code ends
end start 我感觉不要纠结这个,继续学,过一段再回过头再看有可能就轻松了 lm2wq 发表于 2014-4-25 10:41 static/image/common/back.gif
我感觉不要纠结这个,继续学,过一段再回过头再看有可能就轻松了
是的,没错!:victory: 看看,谢谢楼主分享。 没有问题 明白了这个简单
页:
[1]