Advertisement
AnthonyCagliano

Untitled

Apr 6th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. _gf128_mul:
  2. ... rest of routine
  3. sbc a, a
  4. .smc_poly:=$+1
  5. and a, 11100001b
  6. .smc_read_byte:=$+2
  7. xor a, (ix - 16) ; little endian
  8. .smc_write_byte:=$+2
  9. ld (ix - 16), a
  10.  
  11.  
  12. _gf128_mul_set_polyval:
  13. ld a, 10000111b
  14. ld (_gf128_mul.smc_poly), a
  15. ld a, -1
  16. ld (_gf128_mul.smc_read_byte), a
  17. ld (_gf128_mul.smc_write_byte), a
  18. ret
  19.  
  20. _gf128_mul_reset:
  21. ld a, 11100001b
  22. ld (_gf128_mul.smc_poly), a
  23. ld a, -16
  24. ld (_gf128_mul.smc_read_byte), a
  25. ld (_gf128_mul.smc_write_byte), a
  26. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement