So I am still kind of a beginner in NASM x64. I am writing a rock paper scissors program and I decided that instead of getting a random number I should just get the last digit of milliseconds. I already know how to get the time in seconds:
section .text:
global _start
_start:
mov rax, 201
xor rdx, rdx ; if rdx is empty, the time value will go to rax
syscall
; exit
mov rax, 60
mov rdi, 0
syscall
I've tested it out and it works. How can I do the exact same thing, but rax will hold the value in milliseconds? (I am not saying multiply by 1000, I want the real value)
I have looked for a really long time: went through the syscall table, searched it up, look at a university's course plan. I even asked an AI. So I'm at my last resort asking you guys. Any help would be greatly appreciated.