Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS2208b Assignment 3 Issued on: Thursday, February 28, 2019 Programming Stvle Programming style is very important in assembly language. It is expected to do the

image text in transcribed

CS2208b Assignment 3 Issued on: Thursday, February 28, 2019 Programming Stvle Programming style is very important in assembly language. It is expected to do the following in your programs Using EQU directive to give a symbolic name to a numeric constant to make it more readable. Applying neat spacing and code organization o 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 each assembly line Commenting each logical part of your code Great Ways to Lose Marks Not grouping your lines into logical ideas Not appropriately using whitespace Not bothering to comment your code Commenting the code by just stating what you're doing, instead of why, e.g., MOV r0, #5 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 Not using proper flowchart symbols Not following the flowchart rules move 5 into r0 ESTION 2 (50 marks Your code should be highly optimized. Use as few instructions as possible (as little as 21 assembly instructions only NOT ling any assembly nitions)!! Ignore all characters that are not letters. You should also treat capital and small letters the same, i.e., case insensitive. For example, "madani. "deleveled", Noor", He lived as a devil, eh?", and "Was it a car or a cat l saw?" are palindrome strings. However, "madam, I am Adam." is not a palindrome string. A string can have even or odd number of characters and must end with character 0x00(i.e, the ASCII code of the null character) Define in your assembly program t STRING DCB "He lived as a devil, eh?" ;string Eos he string as follow: DCB 0x00 end of string

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

What is human resource management?

Answered: 1 week ago

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago