This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: C Opcode : ADD, AND (one is enough) Function : Selects whether an immediate operand or a value from a register will be used (Bit 5). Problem 3 Part A P condition code. Part B Whether the instruction sets the condition codes. Problem 4 1100 1 00 001 000100 Problem 5 1111 0000 00100111 No. Because GETC and OUT overwrite R7 linkage to main program will be lost. Problem 6 Outputs the input characters in reverse order. Problem 7 Filled blanks in order: ADD R1, R1, #-1 LDR R4, R1, #0 ADD R0, R0, #1 ADD R1, R1, #-1 BRnzp LOOP Problem 8 Part A Sets the Interrupt Enable bit of KBSR and continually outputs 2. Part B Echoes the input character and halts. Part C A number of 2's followed by the key struck by the user....
View Full Document
- Fall '06
- Electrical Engineering