Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
26
Task/Exceptions/8086-Assembly/exceptions.8086
Normal file
26
Task/Exceptions/8086-Assembly/exceptions.8086
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
;syscall for creating a new file.
|
||||
mov dx,offset filename
|
||||
mov cx,0
|
||||
mov ah,5Bh
|
||||
int 21h
|
||||
;if error occurs, will return carry set and error code in ax
|
||||
;Error code 03h = path not found
|
||||
;Error code 04h = Too many open files
|
||||
;Error code 05h = Access denied
|
||||
;Error code 50h = File already exists
|
||||
|
||||
jnc noError ;continue with program
|
||||
|
||||
cmp ax,03h
|
||||
je PathNotFoundError ;unimplemented exception handler
|
||||
|
||||
cmp ax,04h
|
||||
je TooManyOpenFilesError
|
||||
|
||||
cmp ax,05h
|
||||
je AccessDeniedError
|
||||
|
||||
cmp ax,50h
|
||||
je FileAlreadyExistsError
|
||||
|
||||
noError:
|
||||
Loading…
Add table
Add a link
Reference in a new issue