Test program using three different cases

Assignment Help Basic Computer Science
Reference no: EM131441524

Problem 1: Write a MIPS program (which must be named as "hw4_prob1.s") that will read in a base (as an integer) and a value (nonnegative integer but as an ASCII string) in that base and print out the decimal value; you must implement a function (which accepts a base and an address for a string as parameters, and returns the value) and call the function from the main program. The base will be given in decimal and will be between 2 and 36, and the digits for the values will be in set [0...9, a...z]. You can assume that no overflow will occur and the value is valid in the given base. An example run will be:

Enter a base (between 2 and 36 in decimal): 2

Enter a number in base 2: 101

The value in decimal is: 5

Then you need to test program using three different cases (you must use three different bases) and include the results in the pdf file you need to submit.

Hint: The input and output can be done using syscalls in MIPS that are given on p. A-44 (Appendix A).

Reference no: EM131441524

Compute and plot the 4-point dft

Using the fewest number of zeros possible, zero pad x[n] so that the DFT frequency resolution is at least Ω0 = 0.1. Compute and plot the corresponding DFT Xpad[k].

Provide centralized authentication and logging

Scenario You have two VPN servers. One is located in the main corporate office and the second is located at the backup site. You want to provide centralized authentication and

What whistle-blower actions did dr. wigand take

What motivated Wigand to take an executive position at a tobacco company and then five years later to denounce the industry's efforts to minimize the health and safety issue

Implementing all state registers of a finite state machine

Con-sider what (if anything) could go wrong if an FSM was constructed using a combination of positive edge-triggered D flip-flops and negative edge-triggered D flip-flops to

Discuss the merits and demerits of computer freezing

One of the methods used in extracting computer forensics evidence is to freeze the computer. While this is considered a good approach by many people, there are those who thi

Which consists of four averages:

Why is this code not working? (python)  I dont think the for loop is going through because counter never goes off 1. For example, sma([5, 2, 8, 3, 7, 4], 3) should return [5,

File size-transmission speed and transmission time

Cloud 9, a cloud storage service provider based in San Diego, has just announced that it is running out of money and will be shutting down operations soon. It has given all

Developing a system sequence diagram

SSDs are used to describe the behavior of a system at several levels of detail. Often, an SSD is used to model the detailed interaction of a collection of objects that co


Write a Review

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd