王爽-汇编第五章实验四

assume cs:codesg

codesg segment

start: mov ax, 0H
mov ds, ax
mov bx, 200H
mov ax, 0
mov cx, 63
s: mov [bx], ax
inc bx
add ax, 1
loop s

   mov ax, 4c00H
   int 21H

codesg ends
end start

assume cs:codesg

codesg segment

start: mov ax, 0H
mov ds, ax
mov bx, 200H
mov cx, 63
s: mov [bx], bx
inc bx
loop s

   mov ax, 4c00H
   int 21H

codesg ends
end start

assume cs:code

code segment

start: mov ax, cs
mov ds, ax
mov ax, 0020H
mov es, ax
mov bx, 0
mov cx, 20
s: mov al, [bx]
mov es:[bx], al
inc bx
loop s
mov ax, 4c00H
int 21H

code ends
end start

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Loading...