mov ah,4ch int 21h
code ends end start
7、编写10个字节之和,并显示结果的程序。 data segment data_1 db 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh data ends stack segment para stack db 200 dup(?) stack ends code segment assume
cs:code,ds:data,es:data,ss:stack start: mov ax,data mov ds,ax mov cx,10 lea si,data_1 xor ax,ax xor dx,dx
trsmt: mov bl,[si] add al,bl adc ah,0
10
inc dec jnz push pop
mov rotate1: mov rol mov and add cmp jl
add printit1: mov mov int dec jnz mov int code ends end start
si cx trsmt ax bx ch,4 cl,4 bx,cl al,bl al,0fh al,30h al,3ah printit1 al,7h dl,al ah,2 21h ch rotate1 ah,4ch 21h