source: trunk/minix/lib/i386/int64/sub64u.s@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 412 bytes
Line 
1! sub64() - unsigned from 64 bit subtraction Author: Kees J. Bot
2! 7 Dec 1995
3.sect .text
4.define _sub64u, _sub64ul
5
6_sub64u: ! u64_t sub64u(u64_t i, unsigned j);
7_sub64ul: ! u64_t sub64ul(u64_t i, unsigned long j);
8 mov eax, 4(esp)
9 mov edx, 8(esp)
10 sub edx, 16(esp)
11 mov (eax), edx
12 mov edx, 12(esp)
13 sbb edx, 0
14 mov 4(eax), edx
15 ret
16
17!
18! $PchId: sub64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Note: See TracBrowser for help on using the repository browser.