3个回答
展开全部
mov dx,63H;
mov al,8eH;
out dx,al;
mov al,8eH;
out dx,al;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
MY8255_A EQU 9C60H
MY8255_B EQU 9C61H
MY8255_C EQU 9C62H
MY8255_MODE EQU 9C63H
CODE SEGMENT
ASSUME CS:CODE
START: MOV DX,MY8255_MODE
MOV AL,82H
OUT DX,AL
A1: MOV DX,MY8255_B
IN AL,DX
MOV DX,MY8255_A
OUT DX,AL
CALL BREAK
JMP A1
BREAK PROC NEAR
MOV AH,06H
MOV DL,0FFH
INT 21H
JE RETURN
MOV AX,4C00H
INT 21H
RETURN:RET
BREAK ENDP
CODE ENDS
END START
MY8255_B EQU 9C61H
MY8255_C EQU 9C62H
MY8255_MODE EQU 9C63H
CODE SEGMENT
ASSUME CS:CODE
START: MOV DX,MY8255_MODE
MOV AL,82H
OUT DX,AL
A1: MOV DX,MY8255_B
IN AL,DX
MOV DX,MY8255_A
OUT DX,AL
CALL BREAK
JMP A1
BREAK PROC NEAR
MOV AH,06H
MOV DL,0FFH
INT 21H
JE RETURN
MOV AX,4C00H
INT 21H
RETURN:RET
BREAK ENDP
CODE ENDS
END START
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询