Question: subject : Computer Crchitecture and Organization section B : Computer Architecture. 1. Specify the register contents and the status bits as the following instructions are


1. Specify the register contents and the status bits as the following instructions are executed. EOR RO, RO, RO MOV R1, #OxFFFFFFFF MOV R2, #Ox00000066 ADDS R1, R1, #Ox01 SUBS RO, RO, #Ox01 ADD RO, RO, R1 SUBS RO, RO, #Ox86 ORRS RO, RO, R2 END Verify your results by executing the above instruction in the simulator in step forward mode and examining various registers after each step. 2. Write ARM instructions to do the following: 1) Load the number 30H in R1 and 39H in R2 il) Subtract 39H from 30H using R1 and R2 (30H - 39H) ill) Store the result in memory address 7500H 3. Write instructions to 1) Clear RO, 11) Load the data bytes 8EH in R10 and F7H in R12. ) Obtain only the low order 4 bits from both data bytes (Hint: logical mask) iv) Exclusive OR the masked bytes v) Store the result in a memory location Verify your theoretical result by executing the program in step forward mode. 4. To conserves energy and to avoid an electrical overload on a hot afternoon, implement the following procedures to control the appliances through the house. Assume that the control switches are located in the kitchen and they are available to anyone in the house. (B) 0 (A) 0 0 0 ANA B UUU (A) Page 1 of 3 TSN 1101 - Computer Architecture and Organization Lab B-03 Write ARM instructions to do the following: 1) Turn on the air conditioner if switch Sy of the input port 00H is on. 11) Ignore all other switches of the input port even if someone attempt to turn on other appliances. ill) Simulate the output at memory location 7500H 5. Given the following register and memory values, what values do the following ARM instructions load into RO? Assume instructions are not related. Address 1040 contains 0x40 Address 2040 contains 0x50 RO contains Ox0020 R1 contains 0x0040 R2 contains Ox1000 R3 contains Ox0020 R4 contains 0x2000 1) MOV RO, 0x20 11) ADD RO, R1, R3 11) MOV RO, R2 iv) LDR RO, [R2, #Ox40] v) STR RO, [R2) vi) LDR RO, [R4, R1) 6. Specify the flag status if the following ARM instructions are executed: EORS RO, RO, RO SUB RO, RO, #Ox01 MOV R1,#OxFFH ADDS R1, R1, #Ox01 7. List the FOUR basic operations of a computer. 8. Draw the basic instruction cycle state diagram. Describe all the states shown
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
