19 lines
		
	
	
		
			434 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			434 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
/*	sub64() - 64 bit subtraction			Author: Kees J. Bot */
 | 
						|
/*								7 Dec 1995 */
 | 
						|
#include <minix/compiler.h>
 | 
						|
#include <machine/asm.h>
 | 
						|
 | 
						|
ENTRY(sub64)
 | 
						|
/* u64_t sub64(u64_t i, u64_t j); */
 | 
						|
	movl	4(%esp), %eax
 | 
						|
	movl	8(%esp), %edx
 | 
						|
	subl	16(%esp), %edx
 | 
						|
	movl	%edx, (%eax)
 | 
						|
	movl	12(%esp), %edx
 | 
						|
	sbbl	20(%esp), %edx
 | 
						|
	movl	%edx, 4(%eax)
 | 
						|
	ret BYTES_TO_POP_ON_STRUCT_RETURN
 | 
						|
 | 
						|
/* */
 | 
						|
/* $PchId: sub64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $ */
 |