键盘接收输入和按格式输出不会!!!(说真的,我的汇编学的一点都不好,望大哥多点指教。谢谢!)
DATA SEGMENT
MAX Db ?
MIN Db ?
BLOCK DB FFH,F3H,3FH,78H,A3H,32H,11H,FH,23H,18H ;这是初始,如果调用键盘输入该怎么写?
COUNT EQU $-BLOCK
DATA ENDS
CODE SEGMENT
ASSUME DS:DATA,CS:CODE
START: MOV BX,OFFSET BLOCK
MOV AL,[BX]
MOV AH,[BX]
INC BX
MOV CX,COUNT-1
AGAIN: CMP AL,[BX]
JAE NEXT1
MOV AL,[BX]
JMP NEXT
NEXT1: CMP AH,[BX]
JBE NEXT
MOV AH,[BX]
NEXT: INC BX
DEC CX
JNZ AGAIN
MOV MAX,AL
MOV MIN,AH ;要按那种格式输出到显示屏上,应怎么样写这一小段程序那?
RET
START ENDS