调用中断
data segmentintoff dw ?
intseg dw ?
intmsg db 'A Instruction Interrupt !',0dh,0ah,0
data ends
code segment
assume cs:code,ds:data
start:mov ax,3560h
int 21h
mov intoff,bx
mov intseg,es
push ds
mov dx,offset new60h
mov ax,seg new60h
mov ds,ax
mov ax,2560h
int 21h
pop ds
mov dx,offset intmsg
int 60h
mov dx,intoff
mov ax,intseg
mov ds,ax
mov ax,2560h
int 21h
mov ax,4ch
int 21h
new60h proc
sti
push ax
push bx
push si
mov si,dx
new1: mov al,
cmp al,0
jz new2
mov bx,0
mov ah,0eh
int 10h
inc si
jmp new1
new2: pop si
pop bx
pop ax
iret
new60h endp
code ends
end start
有什么问题? 看不懂为什么要把取得地址值放在dx中,同时在最后的代码中,为什么会对数据段中的定义符进行操作 呵呵我来关注一下 一起研究一下呵呵 过来看看一起学习一下
:smile:smile:smile
页:
[1]