朋友们啊!帮我分析更改一下这道程序啊?
编写输出字符串“EXAMPLE FOR INT”的中断处理程序。设中断号为50H。主程序中需要设置中断向量,调用新中断。解:
CODE SEGMENT
ASSUME CS:CODE
MAIN PROC FAR
PUSH DS
MOV AX,0
PUSH AX
CLI
MOV AX,SEG FH
MOV DS,AX
MOV DX,OFFSET FH
MOV AL,50H
MOV AH,25
INT 10H
STI
MOV CX,10
H1: INT 50H
LOOP H1
RET
MAIN ENDP
HELLO DB ‘EXAMPLE FOR INT$’
FH PROC FAR
PUSH AX
PUSH BX
PUSH CX
MOV AH,09H
MOV DX,OFFSET HELLO
INT 21H
POP CX
POP BX
POP AX
RET
FH ENDP
CODE ENDS
EDN MAIN