Fix nasty, subtle flag error in SHA1 code

The dynamic-memory rewrite altered flags (most notably the CA flag) that
the original algorithm didn't touch.  The basic SHA1 algorithm now works.

djnz has been changed to dec \ jp because it is now out of range.