More rotate optimizations for SHA-256.

This commit is contained in:
Stephen Heumann 2017-07-03 15:45:18 -05:00
parent 6891b77fbc
commit 011628d3ce
1 changed files with 12 additions and 3 deletions

View File

@ -362,8 +362,8 @@
sta temp1+2
lda &e+1
sta temp1
ROTL4CONT temp1,2
ROTR4MOVE temp2,temp1,5
ROTR4MOVE temp2,temp1,3
ROTL4 temp1,2
lda &e-1
and #$FF00
sta temp3
@ -437,7 +437,16 @@
lda &a+2
sta temp3
ROTL4CONT temp3,3
ROTR4MOVE temp4,&a,22
lda &a+1
sta temp4+2
lda &a-1
and #$FF00
sta temp4
lda &a+3
and #$00FF
ora temp4
sta temp4
ROTL4CONT temp4,2
lda temp2
eor temp3
eor temp4