source: trunk/minix/lib/i86/int64/sub64.s@ 10

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

Minix 3.1.2a

File size: 392 bytes
Line 
1! sub64() - 64 bit subtraction Author: Kees J. Bot
2! 24 Dec 1995
3.sect .text
4.define _sub64
5
6_sub64: ! u64_t sub64(u64_t i, u64_t j);
7 push bp
8 mov bp, sp
9 mov bx, 4(bp)
10 mov ax, 6(bp)
11 sub ax, 14(bp)
12 mov (bx), ax
13 mov ax, 8(bp)
14 sbb ax, 16(bp)
15 mov 2(bx), ax
16 mov ax, 10(bp)
17 sbb ax, 18(bp)
18 mov 4(bx), ax
19 mov ax, 12(bp)
20 sbb ax, 20(bp)
21 mov 6(bx), ax
22 mov ax, bx
23 pop bp
24 ret
Note: See TracBrowser for help on using the repository browser.