Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. divide by 0 int
- ;file1.asm--------------------------------
- public str1
- extrn DIVERROR : Far
- Data Segment
- str1 db 'We can not do this $'
- Data Ends
- Code Segment
- assume cs:code ,ds:data
- mov ax,data
- mov ds,ax
- xor ax,ax
- mov ax,0
- mov es,ax
- mov word ptr es:0000 ,offset DIVERROR
- mov word ptr es:0002 ,SEG DIVERROR
- mov ax,10
- mov bl,0
- DIV bl
- int 3h
- Code Ends
- End
- ;file2------------------------------------------
- extrn str1: Byte
- public DIVERROR
- c4 segment
- assume cs:c4
- DIVERROR proc far
- lea dx, str1
- mov ah,09h
- int 21h
- mov bl,10
- Iret
- DIVERROR Endp
- c4 Ends
- End
- 2. overflow int
- 3. implement a macro which will evaluate nCr and include the macro using include.h file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement