Programming > Lab Experiment > Lab B-03: Programming Exercise 1- McMaster University DEPARTMENT ee340 (All)

Lab B-03: Programming Exercise 1- McMaster University DEPARTMENT ee340

Document Content and Description Below

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 Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Reviews( 0 )

$5.00

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

80
0

Document information


Connected school, study & course


About the document


Uploaded On

Dec 22, 2022

Number of pages

3

Written in

Seller


seller-icon
jimmydarts

Member since 3 years

82 Documents Sold

Reviews Received
4
2
1
1
5
Additional information

This document has been written for:

Uploaded

Dec 22, 2022

Downloads

 0

Views

 80

Document Keyword Tags


$5.00
What is Scholarfriends

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 are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·