source: trunk/minix/lib/i86/int64/add64.s@ 9

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

Minix 3.1.2a

File size: 389 bytes
Line 
1! add64() - 64 bit addition Author: Kees J. Bot
2! 24 Dec 1995
3.sect .text
4.define _add64
5
6_add64: ! u64_t add64(u64_t i, u64_t j);
7 push bp
8 mov bp, sp
9 mov bx, 4(bp)
10 mov ax, 6(bp)
11 add ax, 14(bp)
12 mov (bx), ax
13 mov ax, 8(bp)
14 adc ax, 16(bp)
15 mov 2(bx), ax
16 mov ax, 10(bp)
17 adc ax, 18(bp)
18 mov 4(bx), ax
19 mov ax, 12(bp)
20 adc 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.