source: trunk/minix/lib/i86/int64/cvu64.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: 370 bytes
Line 
1! cvu64() - unsigned converted to 64 bit Author: Kees J. Bot
2! 24 Dec 1995
3.sect .text
4.define _cvu64, _cvul64
5
6_cvu64: ! u64_t cvu64(unsigned i);
7 mov bx, sp
8 xor dx, dx
9 jmp 0f
10
11_cvul64: ! u64_t cvul64(unsigned long i);
12 mov bx, sp
13 mov dx, 6(bx)
140: mov ax, 4(bx)
15 mov bx, 2(bx)
16 mov (bx), ax
17 mov 2(bx), dx
18 mov 4(bx), #0
19 mov 6(bx), #0
20 mov ax, bx
21 ret
Note: See TracBrowser for help on using the repository browser.