Merge pull request #243 from tkchia/tkchia/self-host

plat/msdos86: add unlink( )
This commit is contained in:
David Given 2022-01-21 22:14:15 +01:00 committed by GitHub
commit 526738b7e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,23 @@
#
! $Source$
! $State$
! $Revision$
! Declare segments (the order is important).
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
! Remove a file.
.define _unlink
_unlink:
mov bx, sp
mov dx, 2(bx)
movb ah, 0x41
int 0x21
jmp .sys_zret