plat/msdos86: add unlink( )
This commit is contained in:
		
							parent
							
								
									612c47371e
								
							
						
					
					
						commit
						76c40b5dc0
					
				
					 1 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								plat/msdos86/libsys/unlink.s
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								plat/msdos86/libsys/unlink.s
									
										
									
									
									
										Normal 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
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue