This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

creating random integers from seed value

Hi, I'm trying to translate this code:
randomInteger =(((randomInteger * 214013) + 2531011) >> 16) & 0x7FFF ;

into assembly in order to create a random integer generator, I'm guessing I'm needing the LSR, AND or MOV instructions, but I'm not sure.

I'm in an introduction to ARM Assembly Language course, I'd appreciate any help

0