Programming > Lab Experiment > Lab B-03: Programming Exercise 1- McMaster University DEPARTMENT ee340 (All)
TSN1101 – Computer Architecture and Organization Lab B – 03 Page 1 of 3 Lab B-03: Programming Exercise 1 The following questions are to be completed in the Lab, and included in the report. 1. ... Specify the register contents and the status bits as the following instructions are executed. EOR R0, R0, R0 MOV R1, #0xFFFFFFFF MOV R2, #0x00000066 ADDS R1, R1, #0x01 SUBS R0, R0, #0x01 ADD R0, R0, R1 SUBS R0, R0, #0x86 ORRS R0, R0, 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: i) Load the number 30H in R1 and 39H in R2 ii) Subtract 39H from 30H using R1 and R2 (30H – 39H) iii) Store the result in memory address 7500H 3. Write instructions to i) Clear R0, ii) Load the data bytes 8EH in R10 and F7H in R12. iii) 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 [Show More]
Last updated: 2 years ago
Preview 1 out of 3 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Dec 22, 2022
Number of pages
3
Written in
This document has been written for:
Uploaded
Dec 22, 2022
Downloads
0
Views
80
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·