好友
阅读权限10
听众
最后登录1970-1-1
|
汇编实验 9 在电脑屏幕中间显示字符串
assume cs:codesg ,ds:datasg
datasg segment
db 'ni zui bang ya !'
datasg ends
codesg segment
start:mov ax,datasg
mov ds,ax
mov ax,0b800h
mov es,ax
mov cx,3
mov bx,0
s:mov si,0
mov di,0
push cx
mov cx,16
s3:
mov al,[si]
mov es:[bx+7c0h+di],al
add di,2
add si,1
loop s3
add bx,0a0h
pop cx
loop s
mov bx,0
mov si,0
mov bx,0
mov cx,16
s5:
mov al,82h
mov es:[7c0h+si+1],al
mov al,0a4h
mov es:[7c0h+0a0h+si+1],al
mov al,81h
mov es:[7c0h+0a0h+0a0h+si+1],al
add si,2
loop s5
mov ax,4c00h
int 21h
codesg ends
end start
|
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|