assume cs:codecode segmentstart: mov ax,3456int 7chadd ax,axadc dx,dxmov ax,4c00hint 21hcode endsend startt50.asm(主要实现中断处理程序的代码实现、代码安装、中断向量表设置,然后再其他程序调用int 7ch时候会默认调用该中断处理程序)assume cs:codecode segmentstart: mov ax, 0mov es,axmov di,200h ;目的地址mov ax, codemov ds,axmov si,offset fstart ;源地址mov cx,offset fend - offset fstartcldrep movsb ;先复制代码mov ax,0mov ds,axmov word ptr ds:[7ch*4+2h],0 ;段地址mov word ptr ds:[7ch*4],200h ;偏移地址mov ax,4c00hint 21hfstart: mul axiretfend : nopcode endsend start
小黑屋|手机版|Archiver|鱼C工作室
( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-11-7 03:45
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.