Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

THIS IS FOR JASPer PROCESSOR IT LOOKS LIKE AN OLD AND GREEN CALCULATOR. I haven't seen the right type of coding/answer for this anywhere. Write

THIS IS FOR JASPer PROCESSOR IT LOOKS LIKE AN OLD AND GREEN CALCULATOR. I haven't seen the right type of coding/answer for this anywhere.

Write an assembly language program for the JASPer processor. The program should allow the user to convert a four-digit binary number to decimal. The program works as follows:

1. The user will type four digits, using only the digits 1 and 0. The digits will be displayed on the screen as they are typed. If any other digits or letters are typed, they will be ignored and will not be displayed.

2. The program will convert the digits to a decimal number and display it on the next line.

3. The program will then end. Example output: 0010 2 1111 15 1010 10

Hints: For input and output, the system uses the ASCII values of the characters. The digit 1 will be stored as the ASCII value 49. The digit 0 will be stored as the ASCII value 48. If you want to display the symbol 2, you need to output the ASCII value 50.

Sometimes the program needs to display TWO characters. For example, the number 15 is displayed as the symbol 1 and the symbol 5. This is not automatic you will need to display both symbols. Fortunately, there are only two possibilities: The program will only display a single symbol, or will display a 1 followed by another symbol. So you can handled this with a simple branch.

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = 1- 1 dx 9

Answered: 1 week ago

Question

Describe the Indian constitution and political system.

Answered: 1 week ago

Question

Explain in detail the developing and developed economy of India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = X 52+7 - 1)(x+2) dx

Answered: 1 week ago

Question

What is gravity?

Answered: 1 week ago