dimanche 2 juillet 2017

Generate random integer in MIPS which compiles with QtSpim

So I've seen a lot of questions on generating random integers in a MIPS program using MARS and syscall 42 and that's ok. The problem is that I need to generate a random integer for a program compiled with QtSpim, which has no syscall for 42 or however for calls greater than 17. I can't figure out getting something like a random value from the system like syscall 30 in MARS which gives the system time.

Is there a way to get a random address or hex value to use for a random int generator using xor operations ?

Any help would be appreciated.




Aucun commentaire:

Enregistrer un commentaire