2019-02-19 22:12:56 +00:00
|
|
|
IFDEF RAX
|
|
|
|
|
2019-02-04 16:07:00 +00:00
|
|
|
PUBLIC squareHash
|
2019-03-15 17:00:51 +00:00
|
|
|
PUBLIC initBlock
|
2019-02-04 16:07:00 +00:00
|
|
|
|
|
|
|
.code
|
|
|
|
|
|
|
|
squareHash PROC
|
|
|
|
include asm/squareHash.inc
|
|
|
|
squareHash ENDP
|
|
|
|
|
2019-03-15 17:00:51 +00:00
|
|
|
; rcx = cache
|
|
|
|
; rdx = out
|
|
|
|
; r8 = blockNumber
|
|
|
|
; r9 = iterations
|
|
|
|
initBlock PROC
|
|
|
|
push rbx
|
|
|
|
push rbp
|
|
|
|
push rsi
|
|
|
|
push rdi
|
|
|
|
push r12
|
|
|
|
push r13
|
|
|
|
push r14
|
|
|
|
push r15
|
|
|
|
mov rdi, qword ptr [rcx]
|
|
|
|
mov rbp, rdx
|
|
|
|
; r8 = blockNumber
|
2019-03-16 23:57:48 +00:00
|
|
|
mov rsi, r9
|
|
|
|
include asm/initBlock.inc
|
2019-03-15 17:00:51 +00:00
|
|
|
pop r15
|
|
|
|
pop r14
|
|
|
|
pop r13
|
|
|
|
pop r12
|
|
|
|
pop rdi
|
|
|
|
pop rsi
|
|
|
|
pop rbp
|
|
|
|
pop rbx
|
|
|
|
ret
|
|
|
|
initBlock ENDP
|
|
|
|
|
2019-02-19 22:12:56 +00:00
|
|
|
ENDIF
|
|
|
|
|
2019-02-04 16:07:00 +00:00
|
|
|
END
|