mirror of
https://github.com/sheumann/65816-crypto.git
synced 2024-11-22 07:31:58 +00:00
Reduce duplicated code in SHA-256 implementation.
This commit is contained in:
parent
91c107eb98
commit
61bc8f8b4f
15
sha256.asm
15
sha256.asm
@ -174,13 +174,10 @@ SHA256_PROCESSBLOCK start
|
||||
lda #k
|
||||
sta k_ptr
|
||||
ComputeSchedule 1
|
||||
BlockLoopPart 1
|
||||
jsr ComputeScheduleSub
|
||||
BlockLoopPart 2
|
||||
jsr ComputeScheduleSub
|
||||
BlockLoopPart 3
|
||||
jsr ComputeScheduleSub
|
||||
BlockLoopPart 4
|
||||
jsr BlockLoopSub
|
||||
jsr ScheduleAndBlockLoopSub
|
||||
jsr ScheduleAndBlockLoopSub
|
||||
jsr ScheduleAndBlockLoopSub
|
||||
|
||||
endloop clc
|
||||
lda h0
|
||||
@ -247,7 +244,9 @@ endloop clc
|
||||
sta h7+2
|
||||
rtl
|
||||
|
||||
ComputeScheduleSub anop
|
||||
ScheduleAndBlockLoopSub anop
|
||||
ComputeSchedule 2
|
||||
BlockLoopSub anop
|
||||
BlockLoopPart 1
|
||||
rts
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user