汇编刷题:求1000H单元开始的10个无符号字节数的最大值(本题放入了BL寄存器)

DATA SEGMENT

ORG 1000H

INFO DB 1,2,3,4,5,70H,71H,72H,80H,92H

MAX DB 00H

DATA ENDS

 

CODE SEGMENT

ASSUME CS:CODE,DS:DATA

START:

MOV AX,DATA

MOV DS,AX

 

MOV CX,10

MOV BX,1000H

DEC BX

SIGN:

INC BX

MOV DL,BYTE PTR [BX]

CMP DL,MAX

JA CHANGE

NEXT:

LOOP SIGN

 

MOV BX,0

MOV BL,MAX

 

MOV AH,4CH

INT 21H

 

CHANGE:

MOV MAX,DL

JMP NEXT

 

CODE ENDS

END START

你可能感兴趣的:(汇编)