Skip to content

Commit

Permalink
Merge pull request #6 from PSYCPU/asm
Browse files Browse the repository at this point in the history
Solved register save/restore bug
  • Loading branch information
sipa committed Mar 30, 2013
2 parents 39db881 + 47fdb56 commit 16fbc0f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lin64.asm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
GLOBAL ExSetMult
ALIGN 32
ExSetMult:
push rbp
push rbx
push r12
push r13
push r14
push r15
push rdx
mov r14,[rsi+8*0] ; preload b.n[0]. This will be the case until
; b.n[0] is no longer needed, then we reassign
Expand Down Expand Up @@ -286,6 +292,13 @@ common_exit_norm:
mov [rbx+0*8],rax ; -> this.n[0]
add r8,r11
mov [rbx+1*8],r8 ; -> this.n[1]

pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret

Expand All @@ -305,6 +318,12 @@ common_exit_norm:
GLOBAL ExSetSquare
ALIGN 32
ExSetSquare:
push rbp
push rbx
push r12
push r13
push r14
push r15
push rsi
mov rbp,0FFFFFFFFFFFFFh
Expand Down

0 comments on commit 16fbc0f

Please sign in to comment.