汇编语言——编写中断服务程序实现在屏幕上显示字符串"This is a Interruption Service Program!"(DOS系统功能调用法)

设中断服务类型号为60

DATA SEGMENT
	MESG DB 'This is an Interruption Service Program!$'
DATA ENDS
CODE SEGMENT
	ASSUME CS:CODE,DS:DATA
START:
	mov ax,DATA
	mov ds,ax
	push ds
	
	mov dx,offset disp60
	mov ax,seg disp60
	mov ds,ax
	mov ah,25H
	mov al,60H
	int 21H
	
	pop ds
	int 60H
	
	mov ah,4CH
	int 21H
disp60 proc far
	mov dx,offset MESG
	mov ah,09H
	int 21H
	iret
disp60 endp
CODE ENDS
END START

 

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