home *** CD-ROM | disk | FTP | other *** search
- _window db '╔══════════════════════════════════════════╗'
- db '║ ║'
- db '╚══════════════════════════════════════════╝'
- ;
- _errorcode db 0
- db 28,'Invalid Function Number',0
- db 33,'File Not Found',0
- db 33,'Path Not Found',0
- db 21,'Too Many Open Files (no handles left)',0
- db 33,'Access Denied',0
- db 33,'Invalid Handle',0
- db 26,'Memory Control Blocks Destroyed',0
- db 31,'Insufficient Memory',0
- db 27,'Invalid Memory Block Address',0
- db 30,'Invalid Environment',0
- db 33,'Invalid Format',0
- db 30,'Invalid Access Code',0
- db 34,'Invalid Data',0
- db 34,'Unknown unit',0
- db 26,'Invalid Drive Was Specified',0
- db 21,'Attempt to remove The Current Directory',0
- db 32,'Not Same Device',0
- db 33,'No More Files',0
- db 30,'Disk writ protected',0
- db 34,'Unknown unit',0
- db 32,'Drive not ready',0
- db 32,'Unknown command',0
- db 32,'Data error (CRC)',0
- db 27,'Bad request structure lenght',0
- db 35,'Seek error',0
- db 30,'Unknown media type',0
- db 31,'Sector not found',0
- db 29,'Printer out of paper',0
- db 34,'Write fault',0
- db 35,'Read fault',0
- db 32,'General failure',0
- db 31,'Sharing violation',0
- db 33,'Lock violation',0
- db 30,'Disk change invalid',0
- db 33,'FCB unavailable',0
- db 28,'Sharing buffer exceeded',0
- db ,0,,0,,0,,0,,0,,0,,0,0,,0,,0,0,0,0
- db 26,'Unsupported network request',0
- db 26,'Remote machine not listening',0
- db 28,'Duplicate name on network',0
- db 31,'Network not found',0
- db 34,'Network busy',0
- db 24,'Device no longer exists on network',0
- db 26,'NetBIOS command limit exceeded',0
- db 24,'error in network adapter hardware',0
- db 25,'Incorrect response from network',0
- db 28,'Unexpected network error',0
- db 28,'Remote adapter incompatible',0
- db 32,'Print queue full',0
- db 34,'Queue not full',0
- db 26,'Not enough room for print file',0
- db 29,'Network name deleted',0
- db 33,'Access denied',0
- db 25,'Incorrect network device type',0
- db 28,'Network name not found',0
- db 26,'Network name limit exceeded',0
- db 25,'NetBIOS session limit exceeded',0
- db 33,'Temporary pause',0
- db 26,'Network request not accepted',0
- db 24,'Print or disk redirection paused',0,0,0,0,0,0,0,0
- db 30,'File already exists',0,0
- db 29,'Cannot make directory',0
- db 25,'Fail on int 24H (critical error)',0
- db 31,'Out of structures',0
- db 31,'Already assigned',0
- db 31,'Invalid password',0
- db 31,'Invalid parameter',0
- db 32,'Net write fault',0
- ;
- _errorsave dw ?
- _row db 10
- _col db 19
- _erroradd dw ?
- _count dw 0
- _pointer dw 0
- _scrnbuffer dw 2001 dup ?
- _lenght dw ?
- ;
- _error:
- mov ds,cs
- pop _errorsave
-
- pop ax ;recover error code
- cmp ax,059
- if z jmp _error9
- mov si,offset _errorcode
- mov ds,cs
- mov dx,0
- xchg ah,al
- _error1:
- lodsb
- cmp al,0
- jnz _error1
- inc dx
- cmp dl,ah
- jnz _error1
- mov _erroradd,si
- ;
- mov dx,-1
- _error6:
- lodsb
- inc dx
- cmp al,0
- jnz _error6
- mov _lenght,dx
- ;
- mov ax,_lenght
- cmp ax,0
- if z jmp _error9
-
- call _beep
- push cs
- mov ax,offset _scrnbuffer
- push ax
- call _sav_scrn
- ;
- _error2:
- mov dx,_count
- mov bx,_pointer
- cmp dx,3
- jz _error3
- mov ax,120 ;IF YOU WANT A DIFFERENT ATTRIBUTE, CHANGE THIS VALUE (120)
- push ax
- mov ah,_row
- mov al,_col
- push ax
- push cs
- mov ax,offset _window
- add ax,bx
- push ax
- mov ax,44
- push ax
- call _text_wrt
- inc _count
- add _pointer,44
- inc _row
- jmp _error2
- ;
- _error3:
- mov si,_erroradd
- mov ax,138
- push ax
- sub _row,2
- inc _col
- mov ah,_row
- mov al,[si] ;mov al,_col
- push ax
- push cs
- mov ax,_erroradd
- inc ax
- push ax
- mov ax,_lenght
- push ax
- call _text_wrt
- ;
- mov dx,20
- _error4:
- mov cx,0ffff
- _error5:
- loop _error5
- dec dx
- cmp dx,0
- jnz _error4
- ;
- _error7:
- mov _row,10
- mov _col,19
- mov _count,0
- mov _pointer,0
-
- push cs
- mov ax,offset _scrnbuffer
- push ax
- call _rst_scrn
- _error9:
- mov ds,cs
- push _errorsave
- ret
-