From 76c40b5dc0049958940647c41a1c19b9d522c133 Mon Sep 17 00:00:00 2001 From: Tee-Kiah Chia Date: Fri, 21 Jan 2022 21:06:33 +0000 Subject: [PATCH] plat/msdos86: add unlink( ) --- plat/msdos86/libsys/unlink.s | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 plat/msdos86/libsys/unlink.s diff --git a/plat/msdos86/libsys/unlink.s b/plat/msdos86/libsys/unlink.s new file mode 100644 index 000000000..912f6958d --- /dev/null +++ b/plat/msdos86/libsys/unlink.s @@ -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