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 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 #c as the trace tag for a character. because it is byte, and c because you want to see the result as a character
You will recognize these programs, you have done them before in L 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 pep will take the space as the second character.
Write a program to input an integer. Add to the number and output the result. Use EQUATE for the
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:
# Correct output. Trace tags
# Correct output. Trace tags. equate
# Correct output. Trace tags. equate
# Correct output. Trace tags.
EXAMPLE OF THE PROGRAMMING:
addingintegers.pep
BR main
num: block
num: block
result: block
plus: ascii x
equals: ascii x
main: deci num d
deci num d
lda num d
adda num d
sta result, d
deco num d
stro plus, d
deco num d
stro equals, d
deco result, d
stop
end
input
output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
