ae75f9d4e5
- 755 -> 644
24 lines
389 B
ArmAsm
24 lines
389 B
ArmAsm
! add64() - 64 bit addition Author: Kees J. Bot
|
|
! 24 Dec 1995
|
|
.sect .text
|
|
.define _add64
|
|
|
|
_add64: ! u64_t add64(u64_t i, u64_t j);
|
|
push bp
|
|
mov bp, sp
|
|
mov bx, 4(bp)
|
|
mov ax, 6(bp)
|
|
add ax, 14(bp)
|
|
mov (bx), ax
|
|
mov ax, 8(bp)
|
|
adc ax, 16(bp)
|
|
mov 2(bx), ax
|
|
mov ax, 10(bp)
|
|
adc ax, 18(bp)
|
|
mov 4(bx), ax
|
|
mov ax, 12(bp)
|
|
adc ax, 20(bp)
|
|
mov 6(bx), ax
|
|
mov ax, bx
|
|
pop bp
|
|
ret
|