Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

** IN JASPER NOT C++ / x86 ETC ETC ETC** Write an assembly language program for the JASPer processor. The program should allow the user

** IN JASPER NOT C++ / x86 ETC ETC ETC**

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

------

THE PROGRAM SHOULD BE SIMPLE AND LOOK LIKE THIS:

1. Set the total to zero

2. Get a digit

3. If it is 1 - add 8 to the total

4. Get a digit

5. If it is 1 - add 4 to the total

6. Get a digit

7. If it is 1 - add 2 to the total

8. Get a digit

9. If it is 1 - add 1 to the total

10. Display the total

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago