Question: can we write a program that answers the prompt, in amnenomic that is acceptable for the assembler. prompt: Write a Pep / 9 Assembly language
can we write a program that answers the prompt, in amnenomic that is acceptable for the assembler.
prompt: Write a Pep Assembly language program that takes a number from input, then subtracts from the input value. Next the program should add to the number. If the result is higher than print higher to output. If the result is lower than print the number to output. Allow the user to enter numbers until a zero is entered.
for refernce here is a programs mneomic that was accepted :
BR x
BLOCK
DECI xd
LDBA i
DECO xd
STBA xFCd
LDBA
i
STBA xFCd
STBA xFCd
DECO xd
LDBA i
STBA xFCd
LDBA i
STBA xFCd
LDBA i
STBA xFCd
LDBA i
STBA xFCd
LDWA xd
ADDA i
STWA xd
DECO xd
LDBA i
LDBA
i
STBA xFCd
STBA xFCd
DECO xd
LDBA i
STBA xFCd
LDBA i
STBA xFCd
LDBA i
STBA xFCd
LDBA i
STBA xFCd
LDWA xd
SUBA i
STWA xd
DECO xd
STOP
END
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
