source:
trunk/minix/lib/i86/int64/mul64u.s@
12
| Last change on this file since 12 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 404 bytes | |
| Line | |
|---|---|
| 1 | ! mul64u() - unsigned long by unsigned multiply giving 64 bit result |
| 2 | ! Author: Kees J. Bot |
| 3 | ! 24 Dec 1995 |
| 4 | .sect .text |
| 5 | .define _mul64u |
| 6 | |
| 7 | _mul64u: ! u64_t mul64u(unsigned long i, unsigned j); |
| 8 | push bp |
| 9 | mov bp, sp |
| 10 | mov bx, 4(bp) |
| 11 | mov ax, 6(bp) |
| 12 | mul 10(bp) |
| 13 | mov (bx), ax |
| 14 | mov 2(bx), dx |
| 15 | mov ax, 8(bp) |
| 16 | mul 10(bp) |
| 17 | add 2(bx), ax |
| 18 | adc dx, #0 |
| 19 | mov 4(bx), dx |
| 20 | mov 6(bx), #0 |
| 21 | mov ax, bx |
| 22 | pop bp |
| 23 | ret |
Note:
See TracBrowser
for help on using the repository browser.