Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a MIPS program that fulfills the following specifications: create a plain text file with the sentence: The quick brown fox jumped over the lazy

Create a MIPS program that fulfills the following specifications: create a plain text file with the sentence: The quick brown fox jumped over the lazy river. This file must be in the same folder from which you run MARS. save the name of your file in the data section use SYSCALLs to open the file, then read it into a buffer in data, then close the file; allocate space for another buffer to contain the text+parity since the ASCII characters only use 7 bits (6-0), bit 7 is unused; we will use this bit to store parity even parity bit: set bit 7 to 0 if the ascii code contains an even number of bits; otherwise set to 1 loop through the buffer: o read a byte o set bit 7 for even parity o write the byte to the second buffer put the code that determines 1 or 0 for the parity bit in a function then write another function to check the parity run the program once to check that you get the ok message if the data has not been corrupted run the program again, set a breakpoint before you jump to the check function and manually corrupt the data as seen in the screen shot below; the first a 1010 was changed to 2 0010 which changed the parity; now the program will print the not ok message

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 Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions

Question

Apply civic engagement to the concept of the individual self.

Answered: 1 week ago