CPU与汇编实验五实验报告 下载本文

add ah,bl inc si

mov al,ds:[si] mov cx,4 shl al,cl inc si

mov bl,ds:[si] add al,bl mov num22,ax mov dx,0 mov cx,2710h div cx mov temp,dx add ax,'0' mov tempio,al call output mov ax,temp mov dx,0 mov cx,3e8h div cx mov temp,dx add ax,'0'

mov tempio,al call output mov ax,temp mov dx,0 mov cx,64h div cx mov temp,dx add ax,'0' mov tempio,al call output mov ax,temp mov dx,0 mov cx,0ah div cx mov temp,dx add ax,'0' mov tempio,al call output mov ax,temp add ax,'0' mov tempio,al call output

call newline call newline jmp exit error: call newline lea dx,string mov ah,09h int 21h call newline jmp again exit: mov ah,4ch int 21h input: mov ah,1 int 21h mov tempio,al ret newline: mov ah,2 mov dl,0dh int 21h

mov ah,2 mov dl,0ah int 21h ret output: mov ah,2 mov dl,tempio int 21h ret codes ends end start

(3)、实验结果

3、整数排序并输出16进制 (1)、流程图

开始 输入十个2 位十进制数