Advertisement
Guest User

santacruzButInC

a guest
Feb 18th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1. // Username
  2. puts("Authentication now requires a username and password.");
  3. puts("Remember: both are between 8 and 16 characters.");
  4. puts("Please enter your username:");
  5. getsn((char*)0x2404, 0x63); // Store the username at the adr 0x2404
  6. puts((char*)0x2404); // print the string that's at the adr 0x2404
  7.  
  8. inline asm {
  9.   mov #0x2404, r14 // IDK what to make this in c
  10.   mov  r4, r15
  11.   add #0xffd6, r15
  12. }
  13.  
  14. strcpy((char*)0xffd6, (char*)0x2404); // copy it to adr 0xffd6
  15.  
  16. // Password
  17. puts("Please enter your password:");
  18. getsn((char*)0x2404, 0x63); // Store the password at adr 0x2404
  19. puts((char*)0x2404); // print the string that's at the adr 0x2404
  20.  
  21. strcpy((char*)0xffe8, (char*)0x2404); // copy it to adr 0xffe8
  22.  
  23. // HMMMMM both strings are copied close to each other in memory HMMMM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement