source:
trunk/minix/lib/i86/int64/make64.s@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
File size: 358 bytes |
Line | |
---|---|
1 | ! make64() - make a 64 bit number from two 32 bit halves |
2 | ! Author: Kees J. Bot |
3 | ! 24 Dec 1995 |
4 | .sect .text |
5 | .define _make64 |
6 | |
7 | _make64: ! u64_t make64(unsigned long lo, unsigned long hi); |
8 | mov bx, sp |
9 | mov ax, 4(bx) |
10 | mov dx, 6(bx) |
11 | mov cx, 8(bx) |
12 | push 10(bx) |
13 | mov bx, 2(bx) |
14 | mov (bx), ax |
15 | mov 2(bx), dx |
16 | mov 4(bx), cx |
17 | pop 6(bx) |
18 | mov ax, bx |
19 | ret |
Note:
See TracBrowser
for help on using the repository browser.