Ee446exp4plw

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: INSTRUCTION CODE INSTRUCTION 16 15 14 13 12 11 10 9 876 AND R3,R0;R3 000 00010 101 NOR R2,R0;R2 000 00010 000 XOR R1,R0;R2 000 00010 011 XNOR R2,R0;R3 0 0 0 00010 100 SHFL R2 000 00001 110 5 1 1 0 1 0 4 1 1 0 1 1 3 1 0 1 0 0 2 1 1 1 1 1 1 1 0 0 1 0 HEX CODE 02BF 021A 0266 029B 01CA Q2 LABEL INSTRUCTION AGAIN: INP COMP R0;R0 SET R1 LOOP1: SET R2 LOOP2: DEC R2 JIC LOOP2 DEC R1 JIC LOOP1 JMP AGAIN INSTRUCTION CODE 16 15 14 13 12 11 10 9 87 6 00 00 01 00 00 0 00 00 00 10 01 0 00 00 00 10 11 0 00 00 00 10 11 0 00 00 00 01 11 1 00 00 11 00 01 0 00 00 00 01 11 1 00 00 11 00 00 1 00 00 10 00 00 0 5 0 1 0 0 1 0 1 1 0 4 0 0 0 1 1 0 0 0 0 3 0 0 1 0 0 0 1 0 0 2 0 0 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 HEX CODE 0: 0400 1: 0250 2: 02C5 3: 02CA 4: 01FA 5: 0C40 6: 01F5 7: 0C30 8: 0800 Q3 LABEL INSTRUCTION INP MOVE R0;R1 MOVE R0;R2 DEC R2 JIC GO JMP FIN GO: DEC R2 JIC LOOP JMP FIN LOOP: ADD R0,R1;R0 DEC R2 JIC LOOP FIN: END INSTRUCTION CODE 16 15 14 13 12 11 10 9 8 76 00 000 10 00 00 00 000 01 01 01 00 000 01 01 01 00 000 00 11 11 00 001 10 00 11 00 001 00 01 01 00 000 00 11 11 00 001 10 01 00 00 001 00 01 01 00 000 00 11 00 00 000 00 11 11 00 001 10 01 00 11 110 00 01 11 5 0 0 0 1 0 0 1 1 0 1 1 1 1 4 0 0 0 1 0 0 1 0 0 0 1 0 0 3 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 HEX CODE 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: A: B: C: HEX CODE 0400 02A1 02A2 01FA 0C60 08A0 01FA 0C90 08A0 0194 01FA 0C90 F0F0 Q4 LABEL INSTRUCTION INP MOVE R0;R1 DEC R1 JIC LOO...
View Full Document

This note was uploaded on 04/09/2010 for the course EE ee446 taught by Professor Guran during the Spring '10 term at Middle East Technical University.

Ask a homework question - tutors are online