mips assembly
play

MIPS Assembly (Random Numbers) 2 Lab Schedule Activities - PowerPoint PPT Presentation

Computer Systems and Networks ECPE 170 Jeff Shafer University of the Pacific MIPS Assembly (Random Numbers) 2 Lab Schedule Activities Assignments Due This Week Lab 10 Due by Apr 11 th 5:00am Lab work time MIPS


  1. ì Computer Systems and Networks ECPE 170 – Jeff Shafer – University of the Pacific MIPS Assembly (Random Numbers)

  2. 2 Lab Schedule Activities Assignments Due This Week Lab 10 ì ì Due by Apr 11 th 5:00am Lab work time ì ì MIPS Random Number ì Lab 11 ì Generator Due by Apr 19 th 5:00am ì Lab 12 ì Due by May 1 st 5:00am ì Computer Systems and Networks Spring 2019

  3. 3 ì Random Number Generator Computer Systems and Networks Spring 2019

  4. 4 Random Number Generator ì MIPS syscalls do not provide a random number generator L ì Need to create a simple one for Lab 11 Low quality - Not suitable for cryptography! ì m_w = <choose-initializer>; /* must not be zero */ m_z = <choose-initializer>; /* must not be zero */ uint32_t get_random() { m_z = 36969 * (m_z & 65535) + (m_z >> 16); m_w = 18000 * (m_w & 65535) + (m_w >> 16); return (m_z << 16) + m_w; /* 32-bit result */ } Computer Systems and Networks Spring 2019

  5. 5 In-Class Discussion of MIPS Implementation Computer Systems and Networks Spring 2019

Recommend


More recommend