/* sim5.c - add push, pop, call, ret to sim4 */ /* Last modified on June 29, 2012 */ /* usage "sim5 < test.sim5" up to 100 cycles with trace */ /* usage "sim5 1000 < test.sim5" up to 1000 cycles with trace */ /* usage "sim5 1000 800 900 < test.sim5" up to 1000 cycles trace 800 to 900 */ /* usage "sim5 1000 0 0 < test.sim5" up to 1000 cycles with no trace */ /* You get to write the rest of the code */