Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Username
- puts("Authentication now requires a username and password.");
- puts("Remember: both are between 8 and 16 characters.");
- puts("Please enter your username:");
- getsn((char*)0x2404, 0x63); // Store the username at the adr 0x2404
- puts((char*)0x2404); // print the string that's at the adr 0x2404
- inline asm {
- mov #0x2404, r14 // IDK what to make this in c
- mov r4, r15
- add #0xffd6, r15
- }
- strcpy((char*)0xffd6, (char*)0x2404); // copy it to adr 0xffd6
- // Password
- puts("Please enter your password:");
- getsn((char*)0x2404, 0x63); // Store the password at adr 0x2404
- puts((char*)0x2404); // print the string that's at the adr 0x2404
- strcpy((char*)0xffe8, (char*)0x2404); // copy it to adr 0xffe8
- // HMMMMM both strings are copied close to each other in memory HMMMM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement