Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main:
- stack_reserve: equ 40 ; 32 + 8
- sub rsp, stack_reserve ; shadow space for callees + 8 bytes for stack alignment
- ;; calculate the random number
- rdtsc ; read TSC (Time Stamp Counter) into edx:eax
- mov rcx, rax
- call srand
- call rand
- ;; rand = (rand % 100) + 1
- mov ecx, 100
- mul ecx
- inc edx
- mov [target], ecx
- mov rcx, scan_fmt
- call printf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement