Python-ELMO is a Python library which offers an encapsulation of the binary tool ELMO, in order to manipulate it easily in Python and SageMath script.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

elmoasmfunctionsdef-extension.h 917B

  1. #include "elmoasmfunctionsdef.h"
  2. // Extension of the ELMO API for 2-bytes types
  3. static void rand2bytes(uint16_t* elt) {
  4. randbyte((uint8_t*) elt+1);
  5. randbyte((uint8_t*) elt);
  6. }
  7. static void print2bytes(uint16_t* elt) {
  8. printbyte((uint8_t*) elt+1);
  9. printbyte((uint8_t*) elt);
  10. }
  11. static void read2bytes(uint16_t* elt) {
  12. readbyte((uint8_t*) elt+1);
  13. readbyte((uint8_t*) elt);
  14. }
  15. // Extension of the ELMO API for 4-bytes types
  16. static void rand4bytes(uint32_t* elt) {
  17. randbyte((uint8_t*) elt+3);
  18. randbyte((uint8_t*) elt+2);
  19. randbyte((uint8_t*) elt+1);
  20. randbyte((uint8_t*) elt);
  21. }
  22. static void print4bytes(uint32_t* elt) {
  23. printbyte((uint8_t*) elt+3);
  24. printbyte((uint8_t*) elt+2);
  25. printbyte((uint8_t*) elt+1);
  26. printbyte((uint8_t*) elt);
  27. }
  28. static void read4bytes(uint32_t* elt) {
  29. readbyte((uint8_t*) elt+3);
  30. readbyte((uint8_t*) elt+2);
  31. readbyte((uint8_t*) elt+1);
  32. readbyte((uint8_t*) elt);
  33. }