5 Problems Exam 1 - Electrical and Computer Engineering | ECE 447, Exams of Electrical and Electronics Engineering

Material Type: Exam; Class: Lab for Lecture 001; Subject: Electrical & Computer Enginrg; University: George Mason University; Term: Unknown 1989;

Typology: Exams

2019/2020

Uploaded on 11/25/2020

koofers-user-vdp-1
koofers-user-vdp-1 🇺🇸

5

(1)

9 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE 447
Midterm exam 1
October 29, 2001
INSTRUCTIONS: Please solve selected 4 out of 5 problems. Clearly cross
out the problem you do not want to be graded. Failure to do that will result
in grading first four problems.
HONOR CODE PLEDGE: “On my honor I have neither given nor received
aid on this exam”
Your first and last name (printed): …………………….
Your signature …………………….
Failure to sign the pledge may result in receiving no credit for the exam.
pf3
pf4

Partial preview of the text

Download 5 Problems Exam 1 - Electrical and Computer Engineering | ECE 447 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ECE 447

Midterm exam 1

October 29, 2001

INSTRUCTIONS: Please solve selected 4 out of 5 problems. Clearly cross

out the problem you do not want to be graded. Failure to do that will result

in grading first four problems.

HONOR CODE PLEDGE: “On my honor I have neither given nor received

aid on this exam”

Your first and last name (printed): …………………….

Your signature …………………….

Failure to sign the pledge may result in receiving no credit for the exam.

Problems

Problem 1 (4 points)

What are the values of the registers A, B, IX, and CC (condition code register), the array GAMMA, and the variable COUNT after executing the following code written in the assembly language. Please provide only relevant intermediate values of registers and variables to qualify for a partial credit in case of a mistake.

SIZE EQU 4

org $D COUNT dc.w 12 GAMMA dc.b $CB, $AF, $FF, $F

section .text SHIFT: LDY COUNT

OUTER_LOOP LDAB #SIZE LDX #GAMMA+ CLC

INNER_LOOP ROL 0,X DEX DECB BNE INNER_LOOP

DEY BNE OUTER_LOOP

LDD GAMMA+ SUBD GAMMA

RTS END

Problem 5 (4 points) Write a sequence of assembler directives corresponding to the following sequence of declarations and definitions in C. Define sections, and group together variables belonging to the same section.

#define AA 16 #define COLUMN_NR 3 static unsigned int counter1 = 1000; extern long count(int event_nr); static int array1[][COLUMN_NR]={{0x76, 076, 76}, {’a’, 0xAA, AA}} static float *fptr; long long1 = -2; char *string1 = "GMU"; char string2[] = "CpE"; unsigned char blank[] = {’\t’, ’ ’};