编写一段程序,在char为首地址的26个字节单元中依次存放字母'a' -'z'
;>>>>>>>>>>定义数据段
data segment;
char1 db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
char db 26 dup(?)
data ends;
;>>>>>>>>>定义代码段
code segment;
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov al,offset char1
mov bl,offset char
mov al,-1
mov bl,-1
mov char,-1
next: inc al
inc bl
inc char
mov [bl],[al]
mov [char],[bl]
jnz next
mov ah,4ch
int 21h
code ends
end
start