Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void encrypt(void)
  4. {
  5. int j;
  6. printf("Encryption of data ...");
  7. for(j=0;j<=0x3fff;++j);
  8. }
  9.  
  10. void decrypt(void)
  11. {
  12. int j;
  13. printf("Decryption of data ...");
  14. for(j=0;j<=0x3fff;++j);
  15. }
  16. void main(void)
  17. {
  18. unsigned char i,*porta,*ddra;
  19. porta=(unsigned char *)0x00;
  20. ddra=(unsigned char *)0x01;
  21. if(*porta==0)
  22. {
  23. encrypt();
  24. *porta=2;
  25. }
  26. else
  27. {
  28. decrypt();
  29. *porta=4;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement