exception.asm
资源名称:tizos.rar [点击查看]
上传用户:qddsws
上传日期:2022-06-22
资源大小:723k
文件大小:6k
源码类别:
操作系统开发
开发平台:
C/C++
- [extern int_00]
- [global int00]
- int00:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_00 ; Divide by Zero #DE
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iretd
- [extern int_01]
- [global _int01]
- _int01:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_01
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_02]
- [global int02]
- int02:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_02 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_03]
- [global _int03]
- _int03:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_03 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_04]
- [global int04]
- int04:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_04 ; Divide by Zero #DE
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_05]
- [global int05]
- int05:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_05 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_06]
- [global int06]
- int06:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_06 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_07]
- [global int07]
- int07:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_07 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_08]
- [global int08]
- int08:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_08 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_09]
- [global int09]
- int09:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_09 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_10]
- [global int10]
- int10:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_10 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_11]
- [global int11]
- int11:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_11 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_12]
- [global int12]
- int12:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_12 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_13]
- [global int13]
- int13:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_13 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_14]
- [extern hangup]
- [global int14]
- int14:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pop ebx ; We pop the error code
- pusha
- push ds
- push es
- push fs
- push gs
- mov eax,cr2
- call int_14 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- pop eax
- sub eax,4
- push eax
- sti
- iret
- ;; Exception 15 is an Intel Reserved Interrupt
- [extern int_16]
- [global int16]
- int16:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_16 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_17]
- [global int17]
- int17:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_17 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_18]
- [global int18]
- int18:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_18 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- [extern int_19]
- [global int19]
- int19:
- cli
- mov eax,0x10 ; Data segment
- mov ds,eax
- mov es,eax
- pusha
- push ds
- push es
- push fs
- push gs
- call int_19 ;
- pop gs
- pop fs
- pop es
- pop ds
- popa
- sti
- iret
- ;; Exceptions 20-31 are Intel Reserved Interrupts
- ;; E n d o f E x c e p t i o n s I n t e r r u p t s