

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The fifth quiz for the microprocessors course at boise state university's department of electrical and computer engineering. The quiz includes two parts: the first part asks students to show the outputs generated by a given program, and the second part asks students to explain the role of certain registers and the purpose of interrupt service routines (isr).
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


#include <stdio.h>
#define COUNT 2 unsigned int i=0;
void f2() { i++; }
unsigned int f1(unsigned int x, unsigned int y) { static count = 0;
count++; f2(); printf("count = %d\n", count); return (x+y); }
int main(void) { unsigned int i=1; i++; { unsigned int i, sum=0; for (i=0;i<COUNT;i++) { sum = f1(i,i+1); printf(" i = %d\n", i); } printf(" i = %d\n", i);
} printf(" i = %d\n", i); }
VCOUNT: .word 8 VALUES: .word 2,3,5,7,11,13,17,