diff options
author | Your Name <you@example.com> | 2019-07-15 03:42:22 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2019-07-15 03:42:22 +0100 |
commit | b6b8e35916fbe7425ff73182006e871d13c012bb (patch) | |
tree | 39249b7bd7030dfcefe9fcd65385026f74bf64bf | |
parent | 8013d11d63ffa33ebafd014314e343fe3df8d46f (diff) | |
download | wristapps-b6b8e35916fbe7425ff73182006e871d13c012bb.tar.gz wristapps-b6b8e35916fbe7425ff73182006e871d13c012bb.tar.bz2 wristapps-b6b8e35916fbe7425ff73182006e871d13c012bb.zip |
80 rounds working
-rw-r--r-- | sha1/msauth.asm | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/sha1/msauth.asm b/sha1/msauth.asm index 6f16b03..20523ae 100644 --- a/sha1/msauth.asm +++ b/sha1/msauth.asm @@ -102,10 +102,10 @@ sha1_copy_h_to_ae_loop: bne sha1_copy_h_to_ae_loop lda #0 - sta idx sha1_loop: ; a contains idx + sta idx cmp #20 bhs sha1_k2 lda #(K1-base) @@ -220,19 +220,6 @@ sha1_shuffle: lda #(T1-base) jsr add4 ; A=A+T1 - ldx #0 -sha1_add0: - clc -sha1_add1: - lda VA,x - adc H,x - sta VA,x - incx - txa - and #3 - bne sha1_add1 - cpx #20 - bne sha1_add0 lda idx add #1 @@ -240,6 +227,22 @@ sha1_add1: bhs sha1_done jmp sha1_loop sha1_done: + + + ldx #0 +sha1_add0: + clc +sha1_add1: + lda VA,x + adc H,x + sta VA,x + incx + txa + and #3 + bne sha1_add1 + cpx #20 + bne sha1_add0 + rts |