Advertisement
AnthonyCagliano

Untitled

Apr 7th, 2022
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. ; hash_init(context, alg);
  2. hash_init:
  3. pop bc,de,hl
  4. push hl,de,bc
  5. ld a,l
  6. cp a, hash_algs_impl
  7. sbc a,a
  8. jr z, .error
  9. // if (! [l < hash_alg_count]); return false;
  10. ld h, 9
  11. mlt hl
  12. ld bc, hash_func_lookup
  13. add hl, bc
  14. ld iy, (hl)
  15. ld bc, 9
  16. ldir
  17. jp (iy)
  18. .error:
  19. ld a, 0
  20. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement