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/9 Assembly language program that takes a number from input, then subtracts 25 from the input value. Next the program should add 35 to the number. If the result is higher than 80, print higher to output. If the result is lower than 80, print the number to output. Allow the user to enter numbers until a 0(zero) is entered.
for refernce here is a programs mneomic that was accepted :
BR 0x0005
.BLOCK 2
DECI 0x0003,d
LDBA '',i
DECO 0x0003,d
STBA 0xFC16,d
LDBA '
',i
STBA 0xFC16,d
STBA 0xFC16,d
DECO 0x0003,d
LDBA '+',i
STBA 0xFC16,d
LDBA '2',i
STBA 0xFC16,d
LDBA '5',i
STBA 0xFC16,d
LDBA '=',i
STBA 0xFC16,d
LDWA 0x0003,d
ADDA 25,i
STWA 0x0003,d
DECO 0x0003,d
LDBA '',i
LDBA '
',i
STBA 0xFC16,d
STBA 0xFC16,d
DECO 0x0003,d
LDBA '-',i
STBA 0xFC16,d
LDBA '2',i
STBA 0xFC16,d
LDBA '5',i
STBA 0xFC16,d
LDBA '=',i
STBA 0xFC16,d
LDWA 0x0003,d
SUBA 25,i
STWA 0x0003,d
DECO 0x0003,d
STOP
.END
can we write a program that answers the prompt,

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 Programming Questions!