Question: PLEASE USE PEP / 8 Source code to answer the Following Follow the rubic and example below: The purpose of these exercises is to give

PLEASE USE PEP/8 Source code to answer the Following Follow the rubic and example below:
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). Note that you should use #1c as the trace tag for a character. 1 because it is 1 byte, and c because you want to see the result as a character
You will recognize these programs, you have done them before in L9 Prep, but now you need to do them using symbols and trace tags. Also use .equate where necessary.
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.
Write a program to input an integer. Add 2 to the number and output the result. Use .EQUATE for the 2.
Write a program to input three lowercase characters and output these characters in uppercase. For example, if the input is abc, output will be ABC. Use .EQUATE for the constant you need to subtract
Input two decimal numbers and then subtract the second from the first. Output the result.
RUBRIC:
#1. Correct output. Trace tags
#2. Correct output. Trace tags. .equate
#3. Correct output. Trace tags. .equate
#4. Correct output. Trace tags.
EXAMPLE OF THE PROGRAMMING:
adding2integers.pep
BR main
num1: .block 2
num2: .block 2
result: .block 2
plus: .ascii "+\x00"
equals: .ascii "=\x00"
main: deci num1, d
deci num2, d
lda num1, d
adda num2, d
sta result, d
deco num1, d
stro plus, d
deco num2, d
stro equals, d
deco result, d
stop
.end
input
455
output
45+5=50

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!