Lab 2 - FL13 - ECE 198 JL - University of Illinois - Engineering Wiki

2 given this definition of is the res ult from c

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: << 1 4 << 2 4 << 3 4 << 4 9 < < 14 1 < < 15 10 > > 0 10 > > 1 10 > > 2 10 > > 3 10 > > 4 Ans wer the following ques tions : 1. Look ing at the res ults from c omputations 1-5, do y ou s ee a pattern? W hat's going on? W hat does the left-s hift operation effec tively do? 2. Given this definition of “< < ”, is the res ult from c omputation #6 what y ou would ex pec t? W hat's happening? 3. W hy is the res ult from c omputation #7 negative? 4. Look ing at the res ults from c omputations 8-11, what does the right-s hift operation effec tively do? (Hint: Try doing integer divis ions with the s ame divis or) 5. Think ing of the right-s hift operation as a s hift operation, there's a s imple ex planation for why the res ult of c omputation 12 is 0. W hat is it? (Hint: how does a c omputer enc ode dec imal 10 in s igned 16-bit?) Modifying your PATH The s earc h path is an environment variab le that tells the operating s y s tem where to look for ex ec utables when y ou try to run a program by only its name (no s las hes in program). environme...
View Full Document

This document was uploaded on 03/22/2014.

Ask a homework question - tutors are online