Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*This must be completed using PEP8 code. The purpose of these exercises is to give you practice of the following: mnemonics and labels .EQUATE (constant)

*This must be completed using PEP8 code.

The purpose of these exercises is to give you practice of the following:

  • mnemonics and labels
  • .EQUATE (constant)
  • trace tags (practice using these in EACH program)

You will recognize these programs, they are taken from Test1, but now you need to do them in assembly language, using symbols and trace tags. Also use .equate where necessary.

  1. Write a program to input three characters and output them in reverse (so if the input is pat, the output will be tap) DO NOT leave spaces in the input, if you do pep8 will take the space as the second character.
  2. Write a program to input an integer. Add 2 to the number and output the result. Use .EQUATE for the 2.
  3. Write a program to input a string of three lowercase characters and output a string of these characters in uppercase. For example, if the input is abc, output will be ABC. Use .EQUATE for the constant you need to subtract
  4. Input two decimal numbers and then subtract the second from the first. Output the result.

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions