lundi 24 mai 2021

Random number generator (rdtsc)

So Im working on a battleship project in asm for uni and I want to generate some random numbers between 1-100 for the game in order to place the ships in the matrix. I was told that for the random number generator I could use the rdstc function but it gives me errorA2085: instruction or register not accepted in current CPU mode when I try to use it. What should I change to make it work or what other options I could use to generate numbers?




Aucun commentaire:

Enregistrer un commentaire