设置除法中断
来源:互联网 发布:电信机顶盒安装软件 编辑:程序博客网 时间:2024/06/18 16:58
assume cs:code
code segment
begin:
mov ax,cs
mov ds,ax
mov si,offset error
mov ax,20H
mov es,ax
mov di,0
mov cx,offset enderror-offset error
rep movsb
mov ax,0
mov es,ax
mov word ptr es:[0*4],200H
mov word ptr es:[0*4+2],0
mov ax,4c00H
int 21H
error:
jmp short st1
db 'divide error!'
st1:
mov ax,0
mov ds,ax
mov si,202H
mov ax,0b800H
mov es,ax
mov di,10*0A0H+2*40
mov ah,0
mov cx,13
s: mov al,ds:[si]
mov es:[di],al
inc si
add di,2
loop s
mov ax,4c00H
int 21H
enderror: nop
code ends
end begin
assume cs:code
code segment
begin:
mov ax,cs
mov ds,ax
mov si,offset error
mov ax,20H
mov es,ax
mov di,0
mov cx,offset enderror-offset error
rep movsb
mov ax,0
mov es,ax
mov word ptr es:[0*4],200H
mov word ptr es:[0*4+2],0
mov ax,4c00H
int 21H
error:
jmp short st1
db 'divide error!'
st1:
mov ax,0
mov ds,ax
mov si,202H
mov ax,0b800H
mov es,ax
mov di,10*0A0H+2*40
mov ah,0
mov cx,13
s: mov al,ds:[si]
mov es:[di],al
inc si
add di,2
loop s
mov ax,4c00H
int 21H
enderror: nop
code ends
end begin
0 0
- 设置除法中断
- 设置中断
- 中断0 处理程序(除法溢出)
- 【汇编】重写0号中断(除法溢出中断)
- 除法错误中断(0号中断)的编写
- 除法中断错误的自定义处理 —王爽《汇编语言》
- 中断向量的设置
- 外部中断设置
- 设置APIC中断服务
- arm处理器中断设置
- STM32外部中断设置
- 51单片机中断设置
- MC9S12G定时器中断设置
- MC9S12G定时器中断设置
- STM32外部中断设置
- 除法
- 除法
- 除法
- 使用javaScript动态加载Js文件和Css文件
- [LeetCode]442. Find All Duplicates in an Array
- 一次spinlock死锁故障的定位(太经典,收藏!)
- cocos2dx游戏开发之安装cocos2dx-3.13(一)
- cocos2d-x-3.12 设置sprite 图片大小
- 设置除法中断
- 服务器推送
- Android 源码目录 分析
- http://www.cnblogs.com/freeliver54/p/3725979.html
- 数组的输入输出 main函数形参
- ListView 滑动时 图片乱跳错位
- 面向对象编程的23种设计模式
- ajax提交数据,返回数据数据校验返回值的问题
- ifream实现自适应高度