DOC PREVIEW
UIUC ECE 190 - ECE120 HW12

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Friday, April 17, 2015ECE120 HW121. x3000 0101 001 001 1 00000 ; R1 <— R1 AND 0 x3001 0101 010 010 1 00000 ; R2 <— R2 AND 0 x3002 0001 001 001 1 00101 ; R1 <— R1 + 5 x3003 0001 010 001 1 01011 ; R2 <— R1 + 11 x3004 0001 011 001 000 010 ; R3 <— R1 + R2 x3005 1011 011 000000001 ; M[ M[ x3007 ] ] <— R3 x3006 1111 0000 00100101 ; HALT x3007 1000 0000 0000 0000 ; x4000 x4000 ; store the result2. x3000 0010 001 000001001 ; R1 <— M[ x300A ] x3001 0010 010 000001001 ; R2 <— M[ x300B ] x3002 1001 010 010 111111 ; R2 <— NOT( R2 ) x3003 0001 010 010 1 00001 ; R2 <— R2 + 1 x3004 0001 011 001 000 010 ; R3 <— R1 + R2 x3005 0000 001 000000011 ; IF (1*P) THEN PC <— x3007 x3006 1001 011 011 111111 ; R3 <— NOT( R3 ) x3007 0001 011 011 1 00001 ; R3 <— R3 + 1 x3008 0011 011 000000111 ; M[ x3010 ] <— R3 x3009 1111 0000 00100101 ; HALT x300A ; store the value of R1 x300B ; store the value of R2 x3010 ; store the result1Friday, April 17, 20153. x3000 0010 001 000010010 ; R1 <— M[ x3013 ] x3001 0101 011 011 1 00000 ; R3 <— R3 AND 0 x3002 0010 010 000010001 ; R2 <— M[ x3014 ] x3003 0000 101 000000011 ; IF ((1*P) + (1*N)) THEN PC <— x3007 x3004 0101 011 011 1 00000 ; R3 <— R3 AND 0 x3005 1011 011 000010000 ; M[ M[ x3015 ] <— R3 x3006 0000 111 000001011 ; PC <— x3012 x3007 0000 001 000000010 ; IF (1*P) THEN PC <— x300A x3008 1001 010 010 111111 ; R2 <— NOT ( R2 ) x3009 0001 010 010 1 00001 ; R2 <— R2 + 1 x300A 0001 011 011 000 001 ; R3 <— R3 + R1 x300B 0001 010 010 1 11111 ; R2 <— R2 - 1 x300C 0000 001 111111101 ; IF (1*P) THEN PC <— x300A x300D 0010 010 000001001 ; R2 <— M[ x3014 ] x300E 0000 001 000000010 ; IF (1*P) THEN PC <— x3011 x300F 1001 011 011 111111 ; R3 <— NOT( R3 ) x3010 0001 011 011 1 00001 ; R3 <— R3 + 1 x3011 1011 011 000001000 ; M[ M[ x3015 ] <— R3 x3012 1111 0000 00100101 ; HALT x3013 ; store the value of R1 x3014 ; store the value of R2 x3015 0001 0000 0000 0000 ; x4000 x4000 ; store the result2Friday, April 17, 20154. x3000 1010 001 000000100 ; R1 <— M[ M[ x3005 ] ] x3001 0001 001 001 1 00001 ; R1 <— R1 + 1 x3002 0101 001 001 1 00001 ; R1 <— R1 AND SEXT( 00001 ) x3003 0011 001 000000011 ; M[ M [ x3006 ] ] <— R1 x3004 1111 0000 00100101 ; HALT x3005 1000 0000 0000 0000 ; x4000 x3006 1000 0000 0000 0001 ; x4001 x4000 ; store a value to be check x4001 ; store the output5. x3000 0101 001 001 1 00011 ; R1 <— R1 AND SEXT( 00011 ) x3001 0000 010 000000001 ; IF (1*Z) THEN PC <— x3003 x3002 0101 010 001 1 00000 ; R2 <— R1 AND SEXT( 00000 ) x3003 0001 010 001 1 00001 ; R2 <— R1 + SEXT( 00001 ) x3004 1111 0000 00100101 ; HALT6. 3Friday, April 17,


View Full Document

UIUC ECE 190 - ECE120 HW12

Documents in this Course
Load more
Download ECE120 HW12
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view ECE120 HW12 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view ECE120 HW12 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?