Midterm 1 Review Quiz

For each instruction type on the singlecycle mips

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: that s and t are null ­terminated ASCII strings, where each character is a byte. void strcpy(char* s, char* t) { int i = 0; while (!at_end(s[i]) { t[i] = s[i]; i++; } t[i] = 0; } int at_end(char c) { if (c == 0) return 1; else return 0; } Your name: _______________________________________________________ Question 7 [10 points]. For each instruction type on the single ­cycle MIPS datapath, state whether or not the instruction writes to the PC. For each instruction that writes to the PC, state what data it writes to the PC and what this data conceptually re...
View Full Document

This note was uploaded on 02/08/2014 for the course CS 351 taught by Professor Dr.suzannerivoire during the Fall '13 term at Sonoma.

Ask a homework question - tutors are online