王爽 汇编语言 实验九

assume cs:codesg , ds:datasg

datasg segment
db 'welcome to masm!'
datasg ends

codesg segment
start:
mov bx , 0
mov cx , 16
mov si , 0
mov bp , 0744h

mov ax , datasg
mov es , ax
mov ax , 0b800h
mov ds , ax
s1:
mov al , es:[bx]
mov ah , 02h
mov ds:[bp+si] , ax


mov al ,es:[bx]
mov ah , 36
mov ds:[bp+si+00a0h] , ax

mov al ,es:[bx]
mov ah , 113
mov ds:[bp+si+0140h] , ax

inc bx
add si , 2
loop s1

mov ax , 4c00h
int 21h

codesg ends

end start



posted @ 2010-12-18 22:36  BuildNewApp  阅读(329)  评论(0编辑  收藏  举报