✍ ️Get Free Writing Help
WhatsApp

CS 2208a Introduction to Computer Organization and Architecture: Programming Sty


$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

CS2208a Introduction to Computer Organization and Architecture

Question:

Arm assembly language program to remove the word “the” from a string. Uses big endian 7. IDE is Keil u version 4. uses spaces not tabs. can only be 30 lines. All other info in the doc

Programming Style:

The programming style is essential in assembly language. It is expected to do the following in your programs:

Using the EQU directive to give a symbolic name to a numeric constant to make it more readable.

Applying neat spacing and code organization (do not use TABS, instead use SPACES).:

Assembly language source code should be arranged in three columns: label, instruction, and comments: the label field starts at the beginning of the line, the instruction field (opcodes + operands) starts at the next TAB stop, and the comments are aligned in a column on the right. Using appropriate label names.

Commenting on each assembly line Commenting on each logical part of your code.

Great Ways to Lose Marks.

Not appropriately using spaces to lineup your program.

Not appropriately using EQU to make your code more readable.

Not appropriately using labels to make your code more readable.

Not bothering to comment on your code

Commenting the code by just stating what you’re doing, instead of why, e.g.,

MOV r0, #5 ;move 5 into r0

Not grouping your lines into logical ideas.

Not paying attention to the programming style (see the previous paragraph)

Not optimizing your code by using unnecessary assembly instructions. The more instructions in your program, the less your mark will be. Handing in your code as soon as it assembles, without testing and validating your code Copyright © 2021 Mahmoud El-Sakka.

QUESTION 1: (20 marks)

1. A string is an array representing a sequence of characters. To store a string of n characters in your program, you need to set aside n+1 bytes of memory. This allocated memory will contain the string’s characters plus one extra unique character—the null character—to mark the string’s end. The null character is a byte whose bits are all zeros (0x00). The actual string consists of any group of characters, which none of them can be the null character.

2. Write an ARM assembly language program to copy a null-terminated STRING1 to a null-terminated STRING2, after removing any occurrences of the word “the” (case sensitive) in STRING1. I.e., if STRING1 is “the woman and The man said the” then STRING2 would become, “ woman and The man said ”.

However, if STRING1 is “and they took breathe” then STRING2 would become “and they took breathe” without any change. You can assume that STRING2 will be less than 127 characters. Your code should be highly optimized. Use as few instructions as possible (as little as 30 assembly instructions only,  NOT including any assembly directives or data definitions)!!.

3. Define the data of this program in a separate DATA area.

4. Define the strings as follow:

STRING1 DCB “and the man said they must go”;String1

EoS DCB 0x00 ;end of string1

STRING2 space 0x7F ;just allocating 127 bytes

More test cases:

“the the the 123 the” “ 123 ”

“the, the the 123 the.” “the, 123 the.”

“”  “”

“the”  “”

“The”  “The”

“them the the1”  “them the1”

“4the the 4the The the the1” “4the 4the The the1”

ASCII Table

‘0’  0x30

‘1’  0x31

‘2’  0x32

‘8’  0x38

‘9’  0x39

‘A’  0x41

‘B’  0x42

‘C’  0x43

‘D’  0x44

‘E’  0x45

‘F’  0x46

‘X’

0x58

‘Y’

0x59

‘Z’ 0x5A

CS2208a Introduction to Computer Organization and Architecture

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

21 More Pages to Come in This Document. Get access to the complete answer.

MyAssignmenthelp.com guarantees to provide urgent essay help within any stringent deadline. We boast a team of professional essay writers, who are trained to handle any short deadline. They never rush through the paper to complete it on time. They write each essay help solution from scratch and deliver it before the deadline. It gives students enough time to check the paper before turning it in to the professor. This is how, we serve best students, who need essay help within short deadlines.

More CS2208a CS2208a Introduction to Computer Organization and Architecture: Questions & Answers

Humanities

In this project, you will write a program (server-client model) using sockets for communication; for more information about socket programming, please refer to the tutorial links posted in the Blackboard under the “Supplements” menu link. The program simulates the communication between C …

View Answer

Computer Organization

SCANNERConverts the stream of characters from the input medium into an internal formatsuited for use by the CompilerIdentify the TOKENS of the languageRemove extraneous blanks and other white spaceRemove commentsReport errors discoveredThe SCANNER examines the text, character by character, identifyi …

View Answer

Validating an OO Design

Task 1:Fully functional prototype using major principles of object-oriented programming such as encapsulation, data abstraction, polymorphism and inheritance. Each variable, function/method, loops, if/else statements, etc are well commented. ORTask 2:All possible use cases of the subsystem are ident …

View Answer

programming language

Requirements: 
1)Read through Stage 2: Program Development to obtain details of the requirements of this program. 
2)Write an algorithm that describes how the program will operate.   
a.All program requirements must be included, even if you do not end up including all these re …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Jas Moran

Stanford university, pursuing my Masters’ in Linguistics

850 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

Assignment

Essay: 9 Pages, Deadline:
2 days

Thank you! Quick and Great Essay. The essay was clear and very easy to understand. Thanks!

User ID: 4***21 United States

Networking

Programming: 3 Pages, Deadline:
5 days

thank you for the great work done. I do wish the format was correct but i will change that myself.

User ID: 4***54 United States

Biology

Assignment: 4 Pages, Deadline:
2 days

that was an excellent help. I got a good grade with this help. it save me a lot of time between my work and assignments

User ID: 7***17 Ghana

Accounting

Case Study: 10 Pages, Deadline:
16 days

Thank you for your effort, And thank you to your team too. I receive a good mark agaim

User ID: 6***24 Australia

Pharmacy

Programming: 13 Pages, Deadline:
3 days

good day it it an great work , really a big thanks for helping me to solve the home workthanks again

User ID: 5***49 Saudi Arabia

Medical

Assignment: 4 Pages, Deadline:
7 days

very great it is fantastic workI will do it againthank you so much for solve my home work

User ID: 5***49 Saudi Arabia

Assignment

Home Work: 8 Pages, Deadline:
4 days

The work is good. I appreciate the time and effort you put in to make the assignment a success.

User ID: 8***92 Wote, Kenya

Statistics

Assignment: 5.2 Pages, Deadline:
1 day

I really enjoyed both pieces of the work. Its helped immensely. Will do this again, Very useful and saved so much of my time. I think everyone in thei …

User ID: 8***13 United Kingdom, Great Britain

Management

Programming: 10 Pages, Deadline:
8 days

the assessment had all the tasks done. got good grades for all 3 assessments……..

User ID: 1***99 Regent, Australia

Management

Essay: 8 Pages, Deadline:
3 days

Written with professional insight. Satisfied with the work. Thank you for the help. Much appreciated!

User ID: 8***31 Sweden

Assignment

Essay: 9 Pages, Deadline:
2 days

Thank you! Quick and Great Essay. The essay was clear and very easy to understand. Thanks!

User ID: 4***21 United States

Networking

Programming: 3 Pages, Deadline:
5 days

thank you for the great work done. I do wish the format was correct but i will change that myself.

User ID: 4***54 United States

Biology

Assignment: 4 Pages, Deadline:
2 days

that was an excellent help. I got a good grade with this help. it save me a lot of time between my work and assignments

User ID: 7***17 Ghana

Accounting

Case Study: 10 Pages, Deadline:
16 days

Thank you for your effort, And thank you to your team too. I receive a good mark agaim

User ID: 6***24 Australia

Pharmacy

Programming: 13 Pages, Deadline:
3 days

good day it it an great work , really a big thanks for helping me to solve the home workthanks again

User ID: 5***49 Saudi Arabia

Medical

Assignment: 4 Pages, Deadline:
7 days

very great it is fantastic workI will do it againthank you so much for solve my home work

User ID: 5***49 Saudi Arabia

Assignment

Home Work: 8 Pages, Deadline:
4 days

The work is good. I appreciate the time and effort you put in to make the assignment a success.

User ID: 8***92 Wote, Kenya

Statistics

Assignment: 5.2 Pages, Deadline:
1 day

I really enjoyed both pieces of the work. Its helped immensely. Will do this again, Very useful and saved so much of my time. I think everyone in thei …

User ID: 8***13 United Kingdom, Great Britain

Management

Programming: 10 Pages, Deadline:
8 days

the assessment had all the tasks done. got good grades for all 3 assessments……..

User ID: 1***99 Regent, Australia

Management

Essay: 8 Pages, Deadline:
3 days

Written with professional insight. Satisfied with the work. Thank you for the help. Much appreciated!

User ID: 8***31 Sweden

Have any Query?

The post CS 2208a Introduction to Computer Organization and Architecture: Programming Sty appeared first on study tools.

Don`t copy text!